shish před 2 roky
rodič
revize
239e382bce
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      app-ghs/controllers/OrderController.php

+ 8 - 1
app-ghs/controllers/OrderController.php

@@ -860,9 +860,16 @@ class OrderController extends BaseController
             }
             $post['hasPay'] = 2;
             $post['payWay'] = 0;
+        } else {
+            foreach ($productList as $currentKey => $currentProduct) {
+                //预订单用了0.06这个价格
+                $nowPrice = $currentProduct['price'];
+                if ($currentProduct == 0.06) {
+                    util::fail('花材不允许使用0.06元,请改其它价');
+                }
+            }
         }
 
-
         //4秒内不允许重复开单
         $staffId = $this->shopAdminId ?? 0;
         $cacheKey = 'ghs_create_order_' . $staffId . '_' . $customId;