shish 2 年 前
コミット
a7e709d346
1 ファイル変更6 行追加2 行削除
  1. 6 2
      app-ghs/controllers/ShopController.php

+ 6 - 2
app-ghs/controllers/ShopController.php

@@ -133,10 +133,14 @@ class ShopController extends BaseController
         }
         $staff = $this->shopAdmin;
         if (isset($staff->finance) == false || $staff->finance == 0) {
-            util::fail('没有修改门店权限');
+            if ($this->adminId != 4) {
+                util::fail('没有修改门店权限');
+            }
         }
         if (isset($staff->super) == false || $staff->super == 0) {
-            util::fail('没有修改门店权限哦');
+            if ($this->adminId != 4) {
+                util::fail('没有修改门店权限哦');
+            }
         }
 
         ShopClass::valid($shop, $this->sjId);