소스 검색

修改api信息

lvhao 3 달 전
부모
커밋
a8d92b7400
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      core/CoreApp/models/Model_api.php

+ 3 - 0
core/CoreApp/models/Model_api.php

@@ -57,6 +57,9 @@ function __construct(){
         	//$this->logic_ding->sendToDing("测试获取SU订单".$info);
 			$result = json_decode($info,true);
 			$thatDayOrder = array();
+			if(empty($result['data'])){
+				return [];
+			}
 			foreach ($result['data'] as $v)
 			{
 				$productNames = '';