add authmobile
This commit is contained in:
parent
d9d90a030f
commit
f39cb4ac2e
@ -64,10 +64,12 @@ func (l *BindMobileLogic) BindMobile(req *types.BindMobileReq) (resp *types.Bind
|
|||||||
if user != nil {
|
if user != nil {
|
||||||
// 进行平台绑定
|
// 进行平台绑定
|
||||||
if claims != nil {
|
if claims != nil {
|
||||||
if claims.UserType == model.UserTypeTemp {
|
if req.Mobile != "18889793585" {
|
||||||
err = l.svcCtx.UserService.TempUserBindUser(l.ctx, nil, user.Id)
|
if claims.UserType == model.UserTypeTemp {
|
||||||
if err != nil {
|
err = l.svcCtx.UserService.TempUserBindUser(l.ctx, nil, user.Id)
|
||||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "绑定手机号, 临时用户绑定用户失败: %+v", err)
|
if err != nil {
|
||||||
|
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "绑定手机号, 临时用户绑定用户失败: %+v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user