Browse Source

提高数据

lvhao 3 months ago
parent
commit
908196ee4b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      core/CoreApp/models/Model_cne.php

+ 4 - 4
core/CoreApp/models/Model_cne.php

@@ -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'){