kevin_zhangl 2 gadi atpakaļ
vecāks
revīzija
1c9a0a217e

+ 5 - 3
frontendApi/modules/v1/controllers/ShopController.php

@@ -520,15 +520,16 @@ class ShopController extends BaseController {
             )
             ->asArray()
             ->all();
-
+LoggerTool::debug(1);
         if (!$orderList) {
             LoggerTool::info(['推送wst系统终止,原因:无订单', $createdAtStart, $createdAtEnd]);
             return static::notice('推送wst系统终止,原因:无订单');
         }
-
+        LoggerTool::debug(2);
         $orderSnSuccess = [];
         $orderSnFailed = [];
         $logistics = new Logistics();
+        LoggerTool::debug(3);
         foreach ($orderList as $order) {
             // 发送wst仓库系统
             $response = $logistics->createOrder($order);
@@ -544,11 +545,12 @@ class ShopController extends BaseController {
             $orderSnSuccess[] = $response;
         }
 
-
+        LoggerTool::debug(4);
         // 更新db中订单推送成功状态
         if (count($orderSnSuccess) > 0) {
             Order::updateAll(['SEND_AT' => time()], 'SN IN (:SN)', [':SN' => implode("', '", $orderSnSuccess)]);
         }
+        LoggerTool::debug(5);
         if (count($orderSnFailed) > 0) {
             // 发送预警通知
             LoggerTool::error(['自动推送wst失败', $orderSnFailed]);