by Robin at 20241126

This commit is contained in:
Robin 2024-11-26 16:28:43 +08:00
parent f843490b0f
commit a91904f18f
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ func (l *LoginBusinessValidator) EnsureVeriCodeWrongTimesNotReachedDailyUpperbou
l.ec = errcode.ErrCodeVeriCodeWrongTimesSrvFail
return
}
if wrongTimes == nil {
return
}
if wrongTimes.WrongTimes >= int64(maxDailyWrongTimes) {
logger.Error("wrongs times of verification code of this mid has reached its daily upperbound")