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())