middleware/jwt.go
@@ -105,9 +105,14 @@ c.Next() return } userInfo := service.GetUserBaseCache(claims.UserId) if userInfo == nil { SyncUserInfo() userInfo = service.GetUserBaseCache(claims.UserId) } claims.CrmUserId = userInfo.UserId claims.NickName = userInfo.NickName c.Set("claims", claims) if CheckAuth(c.Request.RequestURI, token) { c.Next() } else {