From addcd9eb7297dac4f75a6315fd7df5f5f21e89a6 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 12 Aug 2022 09:54:38 +0800 Subject: [PATCH] dd --- business/auth2/auth2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index a3cdda650..ba02a9ff9 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -290,6 +290,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string authInfo = createAuthInfo(user, authBindEx) globals.SugarLogger.Debug("输出authInfo", authInfo) if user != nil && user.GetID() != "" { + globals.SugarLogger.Debug("我进入到user != nil && user.GetID()") userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP()) } //如果是小程序 @@ -391,6 +392,7 @@ func AddAuthBind(user IUser, newAuthInfo *AuthInfo) (err error) { } else { if handler := authers[newAuthInfo.AuthBindInfo.Type]; handler != nil { newAuthInfo.AuthBindInfo.UserID = user.GetID() + globals.SugarLogger.Debug("进入AddAuthBind获取userID", newAuthInfo.AuthBindInfo.UserID) handler.UnbindAuth(user.GetID(), newAuthInfo.GetAuthType(), newAuthInfo.GetAuthTypeID(), user.GetName()) err = handler.AddAuthBind(newAuthInfo.AuthBindInfo, user.GetName()) } else {