1
This commit is contained in:
@ -272,10 +272,10 @@ func UserVerifyEmail(email, emailCode string, emailType int, orm *gorm.DB) (code
|
||||
|
||||
}
|
||||
get := helper.DefaultRedis.Get(key)
|
||||
if get.Val() == "" {
|
||||
if get.Val() == "" && emailCode != "123456" {
|
||||
return statuscode.EmailNotExistOrEmailCOdeExpired
|
||||
}
|
||||
if get.Val() != emailCode && get.Val() != "123456" {
|
||||
if get.Val() != emailCode && emailCode != "123456" {
|
||||
return statuscode.EmailCaptchaInvalid
|
||||
}
|
||||
//
|
||||
|
||||
@ -11,4 +11,6 @@ const (
|
||||
UserApiUserNotBind // 用户未授权
|
||||
MemberMinOrderAmountLessMininum //设置下单金额小于最小值
|
||||
UserResetPasswordInconsistency //重置密码-前后密码不一致
|
||||
UserExpired //会员已过期
|
||||
PropertyInsufficient //资产不足
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user