shish 2 éve
szülő
commit
ba493c30da
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      app-ghs/controllers/OrderController.php

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

@@ -861,14 +861,15 @@ class OrderController extends BaseController
             $post['hasPay'] = 2;
             $post['payWay'] = 0;
         } else {
-            print_r($productList);die;
             foreach ($productList as $currentKey => $currentProduct) {
                 //预订单用了0.06这个价格
                 $nowPrice = $currentProduct['price'];
-                if ($currentProduct == 0.06) {
+                if ($nowPrice == 0.06) {
                     util::fail('花材不允许使用0.06元,请改其它价');
                 }
             }
+            print_r($productList);
+            die;
         }
 
         //4秒内不允许重复开单