From a91904f18f7788e183b2d939c2e854e4abca988a Mon Sep 17 00:00:00 2001 From: Robin <7434053+warrior_of_light_robin@user.noreply.gitee.com> Date: Tue, 26 Nov 2024 16:28:43 +0800 Subject: [PATCH] by Robin at 20241126 --- app/mix/service/business_validator/login.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/mix/service/business_validator/login.go b/app/mix/service/business_validator/login.go index af3c5533..e5e6d26c 100644 --- a/app/mix/service/business_validator/login.go +++ b/app/mix/service/business_validator/login.go @@ -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")