shish 1 год назад
Родитель
Сommit
b92946eab9
1 измененных файлов с 15 добавлено и 1 удалено
  1. 15 1
      app-ghs/controllers/OrderController.php

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

@@ -1076,6 +1076,20 @@ class OrderController extends BaseController
             }
         }
 
+        if (getenv('YII_ENV') == 'production') {
+            if($this->mainId == 1082){
+                if($hasPay != 0){
+                    util::fail('只能使用扫码付款');
+                }
+            }
+        }else{
+            if($this->mainId == 644){
+                if($hasPay != 0){
+                    util::fail('只能使用扫码付款');
+                }
+            }
+        }
+
         //多颜色数据整理
         $colorItem = $post['xj'] ?? [];
         $newXj = [];
@@ -1116,7 +1130,7 @@ class OrderController extends BaseController
                 util::fail('只能选择同一家的商品哈');
             }
         }
-        //开单提交订单时,别人修改价格,暂成提交价格不是真实卖价问题解决!!
+        //解决开单提交订单时,别人修改价格,造成提交价格不是真实卖价问题!!
         if ($dealPrice == 0) {
             $diff = [];
             $priceMap = CustomClass::$levelPriceKeyMap;