修改邮件验证码校验逻辑,使其能够处理注册和安全验证等多种场景。移除不再需要的用户绑定检查,简化代码逻辑。
This commit is contained in:
@@ -78,8 +78,6 @@ func (l *SendEmailCodeLogic) SendEmailCode(req *types.SendCodeRequest) (resp *ty
|
||||
}
|
||||
if constant.ParseVerifyType(req.Type) == constant.Register && m.Id > 0 {
|
||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.UserExist), "mobile already bind")
|
||||
} else if constant.ParseVerifyType(req.Type) == constant.Security && m.Id == 0 {
|
||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.UserNotExist), "mobile not bind")
|
||||
}
|
||||
|
||||
var payload CacheKeyPayload
|
||||
|
||||
Reference in New Issue
Block a user