shish hace 11 meses
padre
commit
f91bfb18eb
Se han modificado 1 ficheros con 9 adiciones y 3 borrados
  1. 9 3
      app-ghs/controllers/OrderController.php

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

@@ -1187,10 +1187,16 @@ class OrderController extends BaseController
                     util::fail('只能使用扫码付款,编号193');
                 }
             }
+            //小齐鲜花出车,不能使用线下收款
+            if ($this->mainId == 42680) {
+                if ($hasPay == 1) {
+                    util::fail('线下收款暂时无法使用');
+                }
+            }
         } else {
             if ($this->mainId == 644) {
-                if ($hasPay != 0) {
-                    //util::fail('只能使用扫码付款,编号190');
+                if ($hasPay == 1) {
+                    util::fail('线下收款暂时无法使用');
                 }
             }
         }
@@ -1231,7 +1237,7 @@ class OrderController extends BaseController
         }
         //判断花材有效性
         foreach ($itemInfo as $itemData) {
-            if (isset($itemData['mainId']) == false || $itemData['mainId'] != $this->mainId) {
+            if (!isset($itemData['mainId']) || $itemData['mainId'] != $this->mainId) {
                 util::fail('只能选择同一家的商品哈');
             }
         }