...
|
...
|
@@ -152,7 +152,16 @@ class Tim extends Controller |
|
|
];
|
|
|
$client = new Client();
|
|
|
$response = $client->request('POST',$url,['json'=>$data]);
|
|
|
return json_decode($response->getBody()->getContents(),true);
|
|
|
$res = json_decode($response->getBody()->getContents(),true);
|
|
|
if(!isset($res['ErrorCode'])){
|
|
|
$this->setError('设置资料失败');
|
|
|
return false;
|
|
|
}
|
|
|
if($res['ErrorCode'] != 0){
|
|
|
$this->setError($res['ErrorInfo']);
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|