|
@@ -552,15 +552,15 @@ function __construct(){
|
|
|
|
|
|
if(!isset($res['statusCode'])){
|
|
|
$content = date('Y-m-d H',time()).'-调用api失败';
|
|
|
- return array('content'=>$content,'f'=>0);
|
|
|
+ return ['code'=>-1,'msg'=>$content];
|
|
|
}
|
|
|
if($res['statusCode'] != 'success'){
|
|
|
$content = date('Y-m-d H',time()).'-调用api异常';
|
|
|
- return array('content'=>$content,'f'=>0);
|
|
|
+ return ['code'=>-1,'msg'=>$content];
|
|
|
}
|
|
|
if(empty($res['returnDatas'])){
|
|
|
$content = date('Y-m-d H',time()).'-查询返回异常';
|
|
|
- return array('content'=>$content,'f'=>0);
|
|
|
+ return ['code'=>-1,'msg'=>$content];
|
|
|
}
|
|
|
|
|
|
|
|
@@ -569,7 +569,7 @@ function __construct(){
|
|
|
$list[] = $this->transfer($info);
|
|
|
}
|
|
|
|
|
|
- return $list;
|
|
|
+ return ['code'=>1,'msg'=>'ok','data'=>$list];
|
|
|
}
|
|
|
private function transfer($info){
|
|
|
if($info['statusCode'] != 'success'){
|