删除日志
This commit is contained in:
@@ -60,11 +60,9 @@ func New(notUsed interface{}, token string, w http.ResponseWriter, r *http.Reque
|
||||
}
|
||||
}
|
||||
} else {
|
||||
globals.SugarLogger.Infof("jxcontext wrong token:%s", token)
|
||||
errCode = model.ErrCodeTokenIsInvalid
|
||||
// userInfo, err2 := auth.GetUserInfo(token)
|
||||
// if err = err2; err == nil {
|
||||
// // globals.SugarLogger.Debugf("jxcontext New, V1 authInfo:%s", utils.Format4Output(userInfo, true))
|
||||
// ctx.userInfo = userInfo
|
||||
// }
|
||||
}
|
||||
@@ -119,7 +117,6 @@ func (ctx *Context) GetLoginInfo() IAuther {
|
||||
|
||||
func (ctx *Context) GetV2AuthInfo() (authInfo *auth2.AuthInfo, err error) {
|
||||
authInfo, ok := ctx.userInfo.(*auth2.AuthInfo)
|
||||
// globals.SugarLogger.Debugf("GetV2AuthInfo, userInfo:%s", utils.Format4Output(ctx.userInfo, false))
|
||||
if ok {
|
||||
return authInfo, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user