优化
This commit is contained in:
parent
703653e25b
commit
a3032f03f4
@ -52,7 +52,7 @@ class XunFeiController extends BaseApiController
|
|||||||
$response = $client->receive();
|
$response = $client->receive();
|
||||||
$resp = json_decode($response,true);
|
$resp = json_decode($response,true);
|
||||||
$code = $resp["header"]["code"];
|
$code = $resp["header"]["code"];
|
||||||
echo "从服务器接收到的数据: " . $response;
|
// echo "从服务器接收到的数据: " . $response;
|
||||||
if(0 == $code){
|
if(0 == $code){
|
||||||
$status = $resp["header"]["status"];
|
$status = $resp["header"]["status"];
|
||||||
if($status != 2){
|
if($status != 2){
|
||||||
@ -72,7 +72,7 @@ class XunFeiController extends BaseApiController
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
echo "服务返回报错".$response;
|
return $this->fail( "服务返回报错".$response);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user