shish 1 éve
szülő
commit
91c03bcd54
1 módosított fájl, 11 hozzáadás és 0 törlés
  1. 11 0
      app-mall/controllers/OrderController.php

+ 11 - 0
app-mall/controllers/OrderController.php

@@ -61,6 +61,17 @@ class OrderController extends BaseController
         $post['userId'] = $this->userId ?? 0;
 
 
+        $mainId = $this->mainId;
+        if (getenv('YII_ENV') == 'production') {
+            if($mainId == 40057){
+                util::fail('请在花掌柜端下单');
+            }
+        }else{
+            if($mainId == 644){
+                util::fail('请在花掌柜端下单');
+            }
+        }
+
         $custom = CustomClass::getByCondition(['shopId' => $this->shopId, 'userId' => $this->userId], true);
         $customId = $custom->id ?? 0;
         if (!empty($custom)) {