This commit is contained in:
Mrx
2026-02-13 15:29:56 +08:00
parent d63338aea4
commit ed5ebc5648

View File

@@ -66,7 +66,7 @@ func (l *RegisterByInviteCodeLogic) RegisterByInviteCode(req *types.RegisterByIn
l.Infof("[RegisterByInviteCode] 手机号加密完成, encryptedMobile: %s", encryptedMobile)
// 校验验证码(开发环境下跳过;验证码 168888、143838 为测试用万能码,可跳过校验)
if req.Code != "143838" && isInPhoneRange(req.Mobile) {
if req.Code != "143838" {
redisKey := fmt.Sprintf("%s:%s", "agentApply", encryptedMobile)
cacheCode, err := l.svcCtx.Redis.Get(redisKey)
if err != nil {