mark 3 年之前
父节点
当前提交
cad95b6bb9
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 4 1
      app/Http/Logic/Cron/CronLogic.php
  2. 1 1
      app/Http/Utils/HeiMaUtil.php

+ 4 - 1
app/Http/Logic/Cron/CronLogic.php

@@ -233,7 +233,10 @@ class CronLogic extends BaseLogic
         foreach ($heimaDatas as $heimaData){
             //查询黑马账号下的订单
             $orders = HeiMaUtil::getOrderList($heimaData);
-
+            if(!isset($orders["publisher_order_dto"])){
+                break;
+            }
+            $orders = $orders["publisher_order_dto"];
             if($orders){
                 BaseUtil::sendBaoJing("","获取到淘宝订单:".count($orders),"定时获取黑马淘客订单");
             }

+ 1 - 1
app/Http/Utils/HeiMaUtil.php

@@ -82,6 +82,6 @@ class HeiMaUtil extends BaseUtil
             //存在错误则报警
             BaseUtil::sendBaoJing("获取订单失败",$response,"定时获取黑马淘客订单");
         }
-        return $response["tbk_sc_order_details_get_response"]["data"]["results"]["publisher_order_dto"];
+        return $response["tbk_sc_order_details_get_response"]["data"]["results"];
     }
 }