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) {