Browse Source

确认送达API:添加是否已使用跑腿配送判断

shizhongqi 7 months ago
parent
commit
a4ca3e6bfa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app-ghs/controllers/OrderController.php

+ 3 - 0
app-ghs/controllers/OrderController.php

@@ -161,6 +161,9 @@ class OrderController extends BaseController
         if ($order->status == 5) {
             util::fail('订单已取消');
         }
+        if ($order->sendStatus != -4){
+            util::fail('已使用跑腿配送');
+        }
         $connection = Yii::$app->db;
         $transaction = $connection->beginTransaction();
         try {