浏览代码

提高数据

lvhao 3 月之前
父节点
当前提交
908196ee4b
共有 1 个文件被更改,包括 4 次插入4 次删除
  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'){