This commit is contained in:
2025-02-27 18:05:14 +08:00
parent be0db326b9
commit 6e83f3bfc4
11 changed files with 279 additions and 165 deletions

View File

@ -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
}
//

View File

@ -11,4 +11,6 @@ const (
UserApiUserNotBind // 用户未授权
MemberMinOrderAmountLessMininum //设置下单金额小于最小值
UserResetPasswordInconsistency //重置密码-前后密码不一致
UserExpired //会员已过期
PropertyInsufficient //资产不足
)