From b50bfd4379686a837fe85e3d868a1c93d82ee9a4 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Mon, 22 Jun 2026 23:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPHP=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=99=A8bug=EF=BC=9A=E6=89=93=E5=BC=80=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=97=B6=E9=9A=90=E8=97=8FC=E4=BD=8D=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E5=AE=9A=E6=97=B6=E5=99=A8=E5=BF=BD=E7=95=A5glassLogi?= =?UTF-8?q?nDismissed=EF=BC=8C=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=97=B6=E9=87=8D=E6=96=B0=E6=98=BE=E7=A4=BAC=E4=BD=8D?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- player.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/player.php b/player.php index 5a787e4..c849191 100644 --- a/player.php +++ b/player.php @@ -866,6 +866,8 @@ if ($currentVersion !== $BUILD_VERSION) { const overlay = document.getElementById('glassLoginOverlay'); overlay.classList.add('show'); glassLoginDismissed = false; + // 隐藏C位登录按钮 + document.querySelector('.guest-center-login').classList.remove('show'); // 停止定时弹窗 if (guestLoginTimer) { clearInterval(guestLoginTimer); guestLoginTimer = null; } setTimeout(() => { @@ -880,6 +882,8 @@ if ($currentVersion !== $BUILD_VERSION) { document.getElementById('glassLoginOverlay').classList.remove('show'); glassLoginDismissed = true; glassLoginReset(); + // 重新显示C位登录按钮(如果还是游客模式) + if (IS_PREVIEW) document.querySelector('.guest-center-login').classList.add('show'); // 重新启动定时弹窗 if (IS_PREVIEW) startGuestLoginTimer(); } @@ -961,9 +965,8 @@ if ($currentVersion !== $BUILD_VERSION) { if (guestLoginTimer) clearInterval(guestLoginTimer); guestLoginTimer = setInterval(() => { if (!IS_PREVIEW) { clearInterval(guestLoginTimer); guestLoginTimer = null; return; } - if (!glassLoginDismissed) { - openGlassLogin(); - } + // 只要游客模式就弹窗,忽略glassLoginDismissed + openGlassLogin(); }, 60000); }