|
@@ -231,7 +231,7 @@ func (this *UserController) GetVerifyCode() {
|
|
|
|
|
|
phoneCountKey := utils.CACHE_ACCESS_PHONE_COUNT_LOGIN_CODE + req.AreaCode + req.Phone
|
|
|
resCount, _ := go_redis.RedisInt(phoneCountKey)
|
|
|
- if resCount > utils.VerifyCodeSendLimit {
|
|
|
+ if resCount >= utils.VerifyCodeSendLimit {
|
|
|
br.Msg = fmt.Sprintf("一天最多获取%s次,已超限", strconv.Itoa(utils.VerifyCodeSendLimit))
|
|
|
return
|
|
|
}
|
|
@@ -290,7 +290,7 @@ func (this *UserController) GetVerifyCode() {
|
|
|
}
|
|
|
emailCountKey := utils.CACHE_ACCESS_EMAIL_COUNT_LOGIN_CODE + req.Email
|
|
|
resCount, _ := go_redis.RedisInt(emailCountKey)
|
|
|
- if resCount > utils.VerifyCodeSendLimit {
|
|
|
+ if resCount >= utils.VerifyCodeSendLimit {
|
|
|
br.Msg = fmt.Sprintf("一天最多获取%s次,已超限", strconv.Itoa(utils.VerifyCodeSendLimit))
|
|
|
return
|
|
|
}
|