Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
周先生 authored and 周先生 committed Jul 16, 2018
1 parent eb6a404 commit ac6af44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ private function post($url, $params = [])
if (!$ret) {
throw new RequestException("未收到任何响应信息", -1);
}
$resStr = json_decode($ret, true);
$resStr = json_decode(mb_convert_encoding($ret, 'utf-8', 'utf-8'), true);
if (!$resStr) {
throw new RequestException("接口返回的数据非JSON格式:" . $response->getBody()->getContents(), -1);
}
Expand Down

0 comments on commit ac6af44

Please sign in to comment.