shish 3 lat temu
rodzic
commit
dbca0078f6
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app-ghs/controllers/AuthController.php

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

@@ -425,9 +425,9 @@ class AuthController extends PublicController
             util::fail("您的账号还未激活");
         }
         $sjId = isset($shopAdmin['sjId']) ? $shopAdmin['sjId'] : 0;
-        $shopId = $shopAdmin['shopId'] ?? 0;
+        $shopId = $shopAdmin['currentGhsShopId'] ?? 0;
         if (empty($shopId)) {
-            util::fail('您不是管理员');
+            util::fail('没有权限登录');
         }
         //获取token
         $token = jwt::getNewToken($adminId);