From ca1d75494d35e291bd60a63f6734e4c4a23c2d69 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 8 Apr 2026 03:46:04 +0000
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E5=AE=A1?=
=?UTF-8?q?=E6=9F=A5=E5=8F=8D=E9=A6=88:=20event=E5=8F=82=E6=95=B0=E4=BC=A0?=
=?UTF-8?q?=E9=80=92=20+=20=E5=88=B7=E6=96=B0=E5=80=92=E8=AE=A1=E6=97=B6?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98f7f760-839a-42c7-b716-fa39b6021391
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
---
server/proxy/service/subscription-server-v3.js | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/server/proxy/service/subscription-server-v3.js b/server/proxy/service/subscription-server-v3.js
index 876d146e..e82e1a40 100644
--- a/server/proxy/service/subscription-server-v3.js
+++ b/server/proxy/service/subscription-server-v3.js
@@ -891,7 +891,7 @@ mode: direct
加速池人数${bwPoolInfo.active_contributors}人在线 / ${bwPoolInfo.total_contributors}人
${bwContribAuthTime ? '授权时间' + new Date(bwContribAuthTime).toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) + '
' : ''}
-
+
@@ -970,8 +970,8 @@ var dashIdx = window.location.pathname.indexOf('/dashboard/');
var bwBasePath = dashIdx >= 0 ? window.location.pathname.substring(0, dashIdx) : '';
// 刷新加速状态 (从带宽池API获取最新数据)
-function refreshAccelStatus() {
- var btn = event.target;
+function refreshAccelStatus(e) {
+ var btn = e.target;
btn.textContent = '⏳ 刷新中...';
btn.disabled = true;
@@ -1091,9 +1091,14 @@ function bwVerifyCode() {
document.getElementById('speedBoostStatus').textContent = '✅ 已开启';
var badge = document.getElementById('accelBadge');
if (badge) { badge.textContent = '加速中'; badge.className = 'accel-badge accel-on'; }
- result.textContent = (data.message || '授权成功!') + ' 刷新页面查看完整状态';
+ result.textContent = (data.message || '授权成功!') + ' 3秒后自动刷新...';
// 3秒后自动刷新页面,加载最新服务器状态
- setTimeout(function() { window.location.reload(); }, 3000);
+ var cd2 = 3;
+ var reloadTimer = setInterval(function() {
+ cd2--;
+ result.textContent = '✅ 授权成功!' + cd2 + '秒后自动刷新...';
+ if (cd2 <= 0) { clearInterval(reloadTimer); window.location.reload(); }
+ }, 1000);
} else {
result.style.background = '#3a1a1a';
result.style.color = '#e74c3c';