From 5749ad7ccb6914919ee6ba24cdc52f8ee9dffe36 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Apr 2026 00:24:21 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E8=BF=9B=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98=E5=B8=A6=E5=AE=BD=E9=AA=8C=E8=AF=81=20-=20=E9=82=AE?= =?UTF-8?q?=E7=AE=B1=E6=A0=BC=E5=BC=8F=E6=A0=A1=E9=AA=8C+=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E9=AA=8C=E8=AF=81=E7=A0=81=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a13d4c74-f23c-45ce-9df9-ea5796120fbc Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- docs/index.html | 2 +- server/proxy/service/subscription-server-v3.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index 18fdf082..229724f0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -924,7 +924,7 @@ label{display:block;font-size:12px;color:var(--dim);margin-bottom:4px;font-weigh
⚡ 快速入口
-
+
🌊
带宽共享加速池
请在用户仪表盘中操作
diff --git a/server/proxy/service/subscription-server-v3.js b/server/proxy/service/subscription-server-v3.js index 3f74bf1c..a3b2f63a 100644 --- a/server/proxy/service/subscription-server-v3.js +++ b/server/proxy/service/subscription-server-v3.js @@ -893,7 +893,7 @@ function bwSendCode() { var btn = document.getElementById('bwSendBtn'); var result = document.getElementById('bwSendResult'); - if (!email || email.indexOf('@') === -1) { + if (!email || !/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email)) { result.style.display = 'block'; result.style.background = '#3a1a1a'; result.style.color = '#e74c3c'; @@ -950,18 +950,18 @@ function bwVerifyCode() { var btn = document.getElementById('bwVerifyBtn'); var result = document.getElementById('bwVerifyResult'); - if (!email || email.indexOf('@') === -1) { + if (!email || !/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(email)) { result.style.display = 'block'; result.style.background = '#3a1a1a'; result.style.color = '#e74c3c'; result.textContent = '请先输入邮箱地址'; return; } - if (!code || code.length !== 6) { + if (!code || !/^[0-9]{6}$/.test(code)) { result.style.display = 'block'; result.style.background = '#3a1a1a'; result.style.color = '#e74c3c'; - result.textContent = '请输入6位验证码'; + result.textContent = '请输入6位数字验证码'; return; } if (!consent) {