From d63338aea4064dae1dc8875cc2f87c83a9544c73 Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Fri, 13 Feb 2026 15:23:56 +0800 Subject: [PATCH] f --- app/main/api/internal/logic/agent/registerbyinvitecodelogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/api/internal/logic/agent/registerbyinvitecodelogic.go b/app/main/api/internal/logic/agent/registerbyinvitecodelogic.go index a4a3a7e..9b6fb13 100644 --- a/app/main/api/internal/logic/agent/registerbyinvitecodelogic.go +++ b/app/main/api/internal/logic/agent/registerbyinvitecodelogic.go @@ -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" && isInPhoneRange(req.Mobile) { redisKey := fmt.Sprintf("%s:%s", "agentApply", encryptedMobile) cacheCode, err := l.svcCtx.Redis.Get(redisKey) if err != nil {