删除测试数据

This commit is contained in:
richboo111
2022-08-22 16:44:29 +08:00
parent a0532efa09
commit 69bfa4e2f2

View File

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