This commit is contained in:
苏尹岚
2020-11-03 14:30:26 +08:00
parent 929595069f
commit 06f764ee94

View File

@@ -273,7 +273,6 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
if user != nil && user.GetID() != "" {
userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP())
}
globals.SugarLogger.Debugf("tetetetet", utils.Format4Output(user, false))
//如果是小程序
if authType == "weixinmini" || authType == "weixinapp" {
appID := strings.Split(authSecret, ",")[0]
@@ -295,6 +294,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
} else {
err = ErrIllegalAuthType
}
globals.SugarLogger.Debugf("tststst", utils.Format4Output(authInfo, false))
return authInfo, err
}