lvhao 1 неделя назад
Родитель
Сommit
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 = '';