fix: 提取验证码冷却常量 + Nginx桥接协议说明注释

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5deef078-5765-44a5-b9bf-03476c0fddce

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-06 10:25:34 +00:00 committed by GitHub
parent 3b4c0a76af
commit bc8af453e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,7 @@ server {
# ─── 光湖语言世界V3 · 带宽授权桥接 (大脑服务器反向代理) ───
# QQ邮箱拦截大脑服务器域名链接此桥接通过guanghulab.online域名
# 将V3授权/订阅请求透传到大脑服务器的V3订阅服务 (端口3805)
# 协议: HTTP (内网通信大脑服务器Nginx监听80端口default_server)
# 部署时由 workflow 自动将 ZY_BRAIN_HOST_PLACEHOLDER 替换为实际IP
location /api/proxy-v3/ {
proxy_pass http://ZY_BRAIN_HOST_PLACEHOLDER/api/proxy-v3/;

View File

@ -1088,6 +1088,8 @@ mode: direct
</div>
<script>
var RESEND_COOLDOWN_MS = 60000; // 验证码重发冷却时间(毫秒)
async function requestCode() {
const btn = document.getElementById('requestCodeBtn');
const codeResult = document.getElementById('codeResult');
@ -1109,7 +1111,7 @@ async function requestCode() {
codeResult.className = 'result success';
codeResult.textContent = '✅ ' + data.message;
btn.textContent = '✅ 验证码已发送';
setTimeout(() => { btn.disabled = false; btn.textContent = '📧 重新发送验证码'; }, 60000);
setTimeout(() => { btn.disabled = false; btn.textContent = '📧 重新发送验证码'; }, RESEND_COOLDOWN_MS);
} else {
codeResult.className = 'result error';
codeResult.textContent = '❌ ' + data.message;