Jelajahi Sumber

限制切换门店

shish 10 bulan lalu
induk
melakukan
fd4c3b9ab9

+ 8 - 0
app-ghs/controllers/ShopController.php

@@ -443,6 +443,14 @@ class ShopController extends BaseController
             if ($mainId == 1459 && $adminId == 2812) {
                 util::fail('收银专用账号,不允许切换门店');
             }
+            //淘花里中山店
+            if ($mainId == 16948 && $adminId == 17908) {
+                util::fail('收银专用账号,不允许切换门店');
+            }
+            //淘花里小榄店
+            if ($mainId == 72057 && $adminId == 69792) {
+                util::fail('收银专用账号,不允许切换门店');
+            }
         }
 
         $shopAdmin = $this->shopAdmin;

+ 8 - 0
app-hd/controllers/ShopController.php

@@ -216,6 +216,14 @@ class ShopController extends BaseController
             if ($mainId == 1459 && $adminId == 2812) {
                 util::fail('收银专用账号,不允许切换门店');
             }
+            //淘花里中山店
+            if ($mainId == 16948 && $adminId == 17908) {
+                util::fail('收银专用账号,不允许切换门店');
+            }
+            //淘花里小榄店
+            if ($mainId == 72057 && $adminId == 69792) {
+                util::fail('收银专用账号,不允许切换门店');
+            }
         }
 
         $shopAdmin = $this->shopAdmin;