shish 1 ano atrás
pai
commit
91c03bcd54
1 arquivos alterados com 11 adições e 0 exclusões
  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;
         $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);
         $custom = CustomClass::getByCondition(['shopId' => $this->shopId, 'userId' => $this->userId], true);
         $customId = $custom->id ?? 0;
         $customId = $custom->id ?? 0;
         if (!empty($custom)) {
         if (!empty($custom)) {