Browse Source

取消跑腿

shish 10 tháng trước cách đây
mục cha
commit
f5509630e7

+ 2 - 2
app-ghs/controllers/IntraCityController.php

@@ -646,9 +646,9 @@ class IntraCityController extends BaseController
             if ($order->status != 3) {
                 util::fail('不能取消');
             }
-            if (in_array($order->sendStatus, [-1, 2, 3])) {
+            if (in_array($order->sendStatus, [-2, 2, 3])) {
                 //订单 没叫跑腿、已送达、已取消
-                util::fail('不能取消哈');
+                util::fail('不能取消哈,编号666');
             }
             $cgId = $order->purchaseId ?? 0;
             $cg = PurchaseClass::getById($cgId, true);

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

@@ -555,9 +555,9 @@ class IntraCityController extends BaseController
         if ($order->status != 3) {
             util::fail('不能取消');
         }
-        if (in_array($order->sendStatus, [-1, 2, 3])) {
+        if (in_array($order->sendStatus, [-2, 2, 3])) {
             //订单 没叫跑腿、已送达、已取消
-            util::fail('不能取消哈');
+            util::fail('不能取消哈,编号896');
         }
 
         $express = ExpressOrderClass::getByCondition(['orderId' => $orderId, 'status' => 1], true);