f
This commit is contained in:
@@ -43,7 +43,7 @@ func (l *MobileCodeLoginLogic) MobileCodeLogin(req *types.MobileCodeLoginReq) (r
|
||||
}
|
||||
|
||||
// 万能验证码跳过校验;非开发环境否则走 Redis 校验
|
||||
if req.Code != bypassLoginCode && os.Getenv("ENV") != "development" {
|
||||
if req.Code != bypassLoginCode || os.Getenv("ENV") != "development" {
|
||||
// 检查手机号是否在一分钟内已发送过验证码
|
||||
redisKey := fmt.Sprintf("%s:%s", "login", encryptedMobile)
|
||||
cacheCode, err := l.svcCtx.Redis.Get(redisKey)
|
||||
|
||||
Reference in New Issue
Block a user