kevin_zhangl 2 жил өмнө
parent
commit
59fefd9f4a

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

@@ -542,12 +542,11 @@ class ShopController extends BaseController {
             }
             }
         }
         }
 
 
-        LoggerTool::debug(4);
         // 更新db中订单推送成功状态
         // 更新db中订单推送成功状态
         if (count($orderSnSuccess) > 0) {
         if (count($orderSnSuccess) > 0) {
-            Order::updateAll(['SEND_AT' => time()], 'SN IN (:SN)', [':SN' => $orderSnSuccess]);
+            Order::updateAll(['SEND_AT' => time()], 'SN IN (:SN)', [':SN' =>  implode("', '", $orderSnSuccess)]);
         }
         }
-        LoggerTool::debug(5);
+
         if (count($orderSnFailed) > 0) {
         if (count($orderSnFailed) > 0) {
             // 发送预警通知
             // 发送预警通知
             LoggerTool::error(['自动推送wst失败', $orderSnFailed]);
             LoggerTool::error(['自动推送wst失败', $orderSnFailed]);