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