Browse Source

管理权限

shish 3 years ago
parent
commit
5c3ed05fb3
1 changed files with 14 additions and 5 deletions
  1. 14 5
      biz-ghs/shop/classes/ShopAdminClass.php

+ 14 - 5
biz-ghs/shop/classes/ShopAdminClass.php

@@ -27,11 +27,20 @@ class ShopAdminClass extends BaseClass
         }
         $mainId = $shop->mainId ?? 0;
         $staffId = $staff->id ?? 0;
-        if ($mainId == 7704) {
-            //国恋只有指定人有查看财务权限
-            $point = [133727, 133545];
-            if (in_array($staffId, $point) == false) {
-                $lookMoney = 0;
+        if (getenv('YII_ENV', 'local') == 'production') {
+            if ($mainId == 7704) {
+                //国恋只有指定人有查看财务权限
+                $point = [133727, 133545];
+                if (in_array($staffId, $point) == false) {
+                    $lookMoney = 0;
+                }
+            }
+        } else {
+            if ($mainId == 644) {
+                $point = [126329];
+                if (in_array($staffId, $point) == false) {
+                    $lookMoney = 0;
+                }
             }
         }
         return $lookMoney;