This commit is contained in:
邹宗楠
2022-05-26 10:14:33 +08:00
parent d9d30a18f1
commit 2549082750
3 changed files with 2 additions and 6 deletions

View File

@@ -55,9 +55,6 @@ func New(notUsed interface{}, token string, w http.ResponseWriter, r *http.Reque
globals.SugarLogger.Debugf("jxcontext New, token:%s", token)
if auth2.IsV2Token(token) {
authInfo, err2 := auth2.GetTokenInfo(token)
globals.SugarLogger.Debug("authInfo==============",authInfo.Name)
globals.SugarLogger.Debug("authInfo==============",authInfo.UserID)
globals.SugarLogger.Debug("authInfo==============",err2)
if err = err2; err == nil {
ctx.userInfo = authInfo
globals.SugarLogger.Debugf("jxcontext New, V2 authInfo:%s", utils.Format4Output(authInfo, true))