From 79280c3990d43709f80f5122e9c6730e684c301d Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Wed, 14 Oct 2026 19:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E7=A6=81=E5=85=AC=E7=A4=BA=E5=88=B0?= =?UTF-8?q?=E6=9C=9F=E6=97=B6=E9=97=B4=E7=A7=92/=E6=AF=AB=E7=A7=92?= =?UTF-8?q?=E5=BD=92=E4=B8=80=EF=BC=9AJava=E6=8E=A8=E6=AF=AB=E7=A7=92?= =?UTF-8?q?=EF=BC=8C=E6=8E=A5=E5=8F=A3=E4=B8=8E=E5=89=8D=E7=AB=AF=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E6=8C=89=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/sync.php | 3 +++ player.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/sync.php b/api/sync.php index 41ae3f4..0866868 100644 --- a/api/sync.php +++ b/api/sync.php @@ -5430,6 +5430,9 @@ function getBanBoard() { $out = array(); while ($row = $res->fetchArray(SQLITE3_ASSOC)) { $expire = (int) ($row['expire_time'] ?? 0); + // ★ 单位归一:Java 端 BanEntry 推的是毫秒(13位),公示接口对外统一按秒; + // 不归一的话「已过期跳过」判断恒不成立,前端还会把日期显示成 68260 年 + if ($expire > 100000000000) $expire = intdiv($expire, 1000); if ($expire > 0 && $expire <= $now) continue; // 跳过已过期的临时封禁 $out[] = array( 'target' => (string) ($row['target'] ?? ''), diff --git a/player.php b/player.php index 322151d..145da8f 100644 --- a/player.php +++ b/player.php @@ -4550,7 +4550,9 @@ function escHtml(s) { return (s||'').replace(/&/g,'&').replace(/ 100000000000) expire = Math.floor(expire / 1000); const perm = expire === 0 ? '永久' : ''; let when = ''; if (expire > 0) {