From 69bfa4e2f2d7c05346b2398428fa020564d63a8c Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 22 Aug 2022 16:44:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/auth2/auth2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 9457d05cb..bdcc9d794 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -377,6 +377,7 @@ func AddAuthBind(user IUser, newAuthInfo *AuthInfo) (err error) { } RemoveUserInfo(newAuthInfo.Token) if newAuthInfo.AuthBindInfo.Type == AuthTypeMobile { + globals.SugarLogger.Debug("进入AuthTypeMobile,输出newAuthInfo.AuthBindInfo.AuthID", newAuthInfo.AuthBindInfo.AuthID) err = userProvider.UpdateUserMobile(user.GetID(), newAuthInfo.AuthBindInfo.AuthID) } else if newAuthInfo.AuthBindInfo.Type == AuthTypeEmail { err = userProvider.UpdateUserEmail(user.GetID(), newAuthInfo.AuthBindInfo.AuthID) @@ -400,6 +401,7 @@ func AddAuthBindWithMobile(authInfo *AuthInfo, mobile string) (err error) { if err != nil { return errors.New("此接口有执行顺序,请先调用注册登录接口:【第一步:Login,第二不:TiktokDecrypt】") } + globals.SugarLogger.Debug("输出user.UserID", user.UserID) authInfo.AuthBindInfo.UserID = user.UserID //handler.UnbindAuth(user.GetID(), newAuthInfo.GetAuthType(), newAuthInfo.GetAuthTypeID(), user.GetName()) globals.SugarLogger.Debug("authInfo.AuthBindInfo,user.GetName()===============", authInfo.AuthBindInfo, user.GetName())