shish 1 год назад
Родитель
Сommit
91c03bcd54
1 измененных файлов с 11 добавлено и 0 удалено
  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)) {