shish 1 年之前
父節點
當前提交
8ffcb4426d
共有 2 個文件被更改,包括 17 次插入5 次删除
  1. 12 0
      app-mall/controllers/ItemController.php
  2. 5 5
      app-mall/controllers/OrderController.php

+ 12 - 0
app-mall/controllers/ItemController.php

@@ -115,6 +115,18 @@ class ItemController extends BaseController
             util::fail('访问门店出错了');
         }
 
+        //普莲花艺、叶上花限制不能在花卉宝下单,多处要同步修改,关键词ls_mall_not_open
+        $mainId = $this->mainId;
+        if (getenv('YII_ENV') == 'production') {
+            if(in_array($mainId,[40057,4750])){
+                util::fail('暂时无法访问');
+            }
+        }else{
+            if(in_array($mainId,[644,0])){
+                util::fail('暂时无法访问');
+            }
+        }
+
         //获取所有当前供货商的分类 (全部、常用)
         //根据分类组装分类下的花材信息
         //中央ID

+ 5 - 5
app-mall/controllers/OrderController.php

@@ -60,15 +60,15 @@ class OrderController extends BaseController
         $post['mainId'] = $this->mainId ?? 0;
         $post['userId'] = $this->userId ?? 0;
 
-        //普莲花艺限制不能在花卉宝下单
+        //普莲花艺、叶上花限制不能在花卉宝下单,多处要同步修改,关键词ls_mall_not_open
         $mainId = $this->mainId;
         if (getenv('YII_ENV') == 'production') {
-            if($mainId == 40057){
-                util::fail('请到绿色【花掌柜】小程序买花');
+            if(in_array($mainId,[40057,4750])){
+                util::fail('暂时无法访问');
             }
         }else{
-            if($mainId == 644){
-                util::fail('请到绿色【花掌柜】小程序买花');
+            if(in_array($mainId,[644,0])){
+                util::fail('暂时无法访问');
             }
         }