Explorar o código

限制二个不支持跑腿

shish hai 11 meses
pai
achega
c0da78453d
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      app-hd/controllers/IntraCityController.php

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

@@ -328,6 +328,12 @@ class IntraCityController extends BaseController
             if ($order['mainId'] != $this->mainId) {
             if ($order['mainId'] != $this->mainId) {
                 util::fail('订单出错');
                 util::fail('订单出错');
             }
             }
+            if ($order['repeat'] == 1) {
+                util::fail('收款码订单不支持跑腿');
+            }
+            if ($order['forward'] == 1) {
+                util::fail('售后付款单不支持跑腿');
+            }
 
 
             $sn = $order['orderSn'];
             $sn = $order['orderSn'];
             $itemInfoList = OrderItemClass::getListBySn($sn, 'id, name, cover, num');
             $itemInfoList = OrderItemClass::getListBySn($sn, 'id, name, cover, num');
@@ -601,7 +607,6 @@ class IntraCityController extends BaseController
     }
     }
 
 
 
 
-
     /**
     /**
      * 获取订单列表
      * 获取订单列表
      * GET /intra-city/order-list
      * GET /intra-city/order-list