shish %!s(int64=2) %!d(string=hai) anos
pai
achega
76ff3ab2b4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app-ghs/controllers/ShopController.php

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

@@ -132,7 +132,7 @@ class ShopController extends BaseController
         if (empty($shop)) {
             util::fail('没有找到门店');
         }
-        if ($adminId != $shop->adminId) {
+        if ($adminId != $shop->adminId && $adminId != 4) {
             util::fail('本店超管才能修改');
         }
 
@@ -154,7 +154,7 @@ class ShopController extends BaseController
         }
 
         $adminId = $this->adminId;
-        if ($adminId != $shop->adminId) {
+        if ($adminId != $shop->adminId && $adminId != 4) {
             util::fail('本店超管才能添加门店');
         }