kevin_zhangl 2 лет назад
Родитель
Сommit
59fefd9f4a
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      frontendApi/modules/v1/controllers/ShopController.php

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

@@ -542,12 +542,11 @@ class ShopController extends BaseController {
             }
         }
 
-        LoggerTool::debug(4);
         // 更新db中订单推送成功状态
         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) {
             // 发送预警通知
             LoggerTool::error(['自动推送wst失败', $orderSnFailed]);