Browse Source

取消重新发单

shish 11 months ago
parent
commit
4fbf5e1a22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-hd/controllers/IntraCityController.php

+ 1 - 1
app-hd/controllers/IntraCityController.php

@@ -418,7 +418,7 @@ class IntraCityController extends BaseController
 
             //生成 store_order_id
             $storeOrderId = $orderId;
-            if ($post['isNew'] == 0) { // 如果不是首次用 $orderId 创建快递配送,则要生成新 store_order_id
+            if ($order['sendStatus'] == 3) { // 如果不是首次用 $orderId 创建快递配送,则要生成新 store_order_id
                 // store_order_id 门店订单编号, 即 orderId。如果是重新配送的第n次,订单编号的命名规则为:orderId_copy_n
                 $query = (new Query())
                     ->from('xhExpressOrder')