This commit is contained in:
2025-07-11 02:21:12 +08:00
parent 347970eab4
commit 038d3a96a4
17592 changed files with 20 additions and 132349 deletions

View File

@@ -70,7 +70,7 @@ func BaseAuthorityMiddleware(r *ghttp.Request) {
cachetoken, _ := cool.CacheManager.Get(ctx, "admin:token:"+gconv.String(admin.UserId))
rtoken := cachetoken.String()
// 超管拥有所有权限
if admin.UserId == 1 && !admin.IsRefresh {
if admin.UserId == 10001 && !admin.IsRefresh {
if tokenString != rtoken && config.Config.Jwt.Sso {
g.Log().Error(ctx, "BaseAuthorityMiddleware", "token invalid")
statusCode = 401