lvhao пре 1 недеља
родитељ
комит
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 = '';