删除测试数据
This commit is contained in:
@@ -377,6 +377,7 @@ func AddAuthBind(user IUser, newAuthInfo *AuthInfo) (err error) {
|
|||||||
}
|
}
|
||||||
RemoveUserInfo(newAuthInfo.Token)
|
RemoveUserInfo(newAuthInfo.Token)
|
||||||
if newAuthInfo.AuthBindInfo.Type == AuthTypeMobile {
|
if newAuthInfo.AuthBindInfo.Type == AuthTypeMobile {
|
||||||
|
globals.SugarLogger.Debug("进入AuthTypeMobile,输出newAuthInfo.AuthBindInfo.AuthID", newAuthInfo.AuthBindInfo.AuthID)
|
||||||
err = userProvider.UpdateUserMobile(user.GetID(), newAuthInfo.AuthBindInfo.AuthID)
|
err = userProvider.UpdateUserMobile(user.GetID(), newAuthInfo.AuthBindInfo.AuthID)
|
||||||
} else if newAuthInfo.AuthBindInfo.Type == AuthTypeEmail {
|
} else if newAuthInfo.AuthBindInfo.Type == AuthTypeEmail {
|
||||||
err = userProvider.UpdateUserEmail(user.GetID(), newAuthInfo.AuthBindInfo.AuthID)
|
err = userProvider.UpdateUserEmail(user.GetID(), newAuthInfo.AuthBindInfo.AuthID)
|
||||||
@@ -400,6 +401,7 @@ func AddAuthBindWithMobile(authInfo *AuthInfo, mobile string) (err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("此接口有执行顺序,请先调用注册登录接口:【第一步:Login,第二不:TiktokDecrypt】")
|
return errors.New("此接口有执行顺序,请先调用注册登录接口:【第一步:Login,第二不:TiktokDecrypt】")
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debug("输出user.UserID", user.UserID)
|
||||||
authInfo.AuthBindInfo.UserID = user.UserID
|
authInfo.AuthBindInfo.UserID = user.UserID
|
||||||
//handler.UnbindAuth(user.GetID(), newAuthInfo.GetAuthType(), newAuthInfo.GetAuthTypeID(), user.GetName())
|
//handler.UnbindAuth(user.GetID(), newAuthInfo.GetAuthType(), newAuthInfo.GetAuthTypeID(), user.GetName())
|
||||||
globals.SugarLogger.Debug("authInfo.AuthBindInfo,user.GetName()===============", authInfo.AuthBindInfo, user.GetName())
|
globals.SugarLogger.Debug("authInfo.AuthBindInfo,user.GetName()===============", authInfo.AuthBindInfo, user.GetName())
|
||||||
|
|||||||
Reference in New Issue
Block a user