Commit 25cdddd0 authored by hangjun83's avatar hangjun83

乐妍

parent d176096d
......@@ -69,7 +69,7 @@ class LeyanApiService extends PlatformAbstractService
);
$token = $this->apiResponse($response);
return $token['data'];
return $token['content'];
}
}catch(\Exception $exception){
......@@ -91,6 +91,7 @@ class LeyanApiService extends PlatformAbstractService
protected function apiResponse($response)
{
$decodeResponse = json_decode($response,true);
return $decodeResponse;
if($decodeResponse['status'] == '1' && $decodeResponse['code'] == '0'){
if(!empty($decodeResponse['data'])){
return $decodeResponse['data'];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment