Skip to content

Commit

Permalink
fix: 修复获取GEO时解析高德数据错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Apr 21, 2018
1 parent f9b4b24 commit 440da3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function getGeo(Request $request, GuzzleHttpClient $client)
$sig = md5($parmas.$this->_amap_sig);
$parmas .= '&sig='.$sig;

$response = json_decode($client->request('get', $this->_getgeo_uri.$parmas)->getBody());
$response = json_decode($client->request('get', $this->_getgeo_uri.$parmas)->getBody()->getContents());

if ($response->status) {
return response()->json($response)->setStatusCode(200);
Expand Down

0 comments on commit 440da3b

Please sign in to comment.