From 105a0b02ea31ae556a3dbe515590a769f4a675b7 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 26 Nov 2025 11:17:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E7=A7=BB=E9=99=A4=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Auth/AuthFormContent.js | 6 ------ src/mocks/handlers/auth.js | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/src/components/Auth/AuthFormContent.js b/src/components/Auth/AuthFormContent.js index 5b1de63b..bbc7768c 100644 --- a/src/components/Auth/AuthFormContent.js +++ b/src/components/Auth/AuthFormContent.js @@ -216,12 +216,6 @@ export default function AuthFormContent() { authEvents.trackVerificationCodeSent(credential, config.api.purpose); } - // ❌ 移除成功 toast,静默处理 - logger.info('AuthFormContent', '验证码发送成功', { - credential: cleanedCredential.substring(0, 3) + '****' + cleanedCredential.substring(7), - dev_code: data.dev_code - }); - // ✅ 开发环境下在控制台显示验证码 if (data.dev_code) { console.log(`%c✅ [验证码] ${cleanedCredential} -> ${data.dev_code}`, 'color: #16a34a; font-weight: bold; font-size: 14px;'); diff --git a/src/mocks/handlers/auth.js b/src/mocks/handlers/auth.js index d604e824..6df5062a 100644 --- a/src/mocks/handlers/auth.js +++ b/src/mocks/handlers/auth.js @@ -31,21 +31,6 @@ export const authHandlers = [ expiresAt: Date.now() + 5 * 60 * 1000 // 5分钟后过期 }); - // 超醒目的验证码提示 - 方便开发调试 - console.log( - `%c\n` + - `╔════════════════════════════════════════════╗\n` + - `║ 验证码: ${code.padEnd(22)}║\n` + - `╚════════════════════════════════════════════╝\n`, - 'color: #ffffff; background: #16a34a; font-weight: bold; font-size: 16px; padding: 20px; line-height: 1.8;' - ); - - // 额外的高亮提示 - console.log( - `%c 验证码: ${code} `, - 'color: #ffffff; background: #dc2626; font-weight: bold; font-size: 24px; padding: 15px 30px; border-radius: 8px; margin: 10px 0;' - ); - return HttpResponse.json({ success: true, message: `验证码已发送到 ${credential}(Mock: ${code})`,