f
This commit is contained in:
@@ -68,6 +68,9 @@ func (l *BindMobileLogic) BindMobile(req *types.BindMobileReq) (resp *types.Bind
|
||||
if user.Disable == 1 {
|
||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.USER_DISABLED), "账号已被封禁")
|
||||
}
|
||||
if user.CancelledAt.Valid {
|
||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.USER_CANCELLED), "账号已注销")
|
||||
}
|
||||
// 进行平台绑定
|
||||
if claims != nil {
|
||||
if claims.UserType == model.UserTypeTemp {
|
||||
|
||||
Reference in New Issue
Block a user