From bcc22df797de1153e53bef5be982e1471010dc8a Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Sat, 17 Oct 2026 13:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC29=E6=89=B9=EF=BC=9A=E5=B0=81=E7=A6=81?= =?UTF-8?q?=E5=AF=B9=E8=B4=A6bans=E9=85=8D=E7=BD=AEcols=E6=90=BA=E5=B8=A6c?= =?UTF-8?q?reated=5Ftime(map=E2=86=92created)=E4=BE=9BJava=E6=94=B6?= =?UTF-8?q?=E5=9B=9E=E6=97=B6=E5=9B=9E=E5=A1=ABBanEntry=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=9Bhashcols=E4=B8=8D=E5=8A=A8=E9=98=B2?= =?UTF-8?q?=E6=8C=87=E7=BA=B9=E6=81=92changed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/sync.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/sync.php b/api/sync.php index 811adcd..3f5f753 100644 --- a/api/sync.php +++ b/api/sync.php @@ -1407,11 +1407,15 @@ function alignmentCatConfig($cat) { 'intcols' => array(), 'pull' => 0, ), + // ★ 29批(2026-10-22):cols 增加 created_time(map→created)——Java 收回行时 + // 把封禁创建时间回填进 Bukkit BanEntry(addBan 默认 created=now,不回填会导致 + // 拷贝生产封禁数据到测试服后「收回」一轮把全员封禁刷成当天 → 播报乱叫)。 + // hashcols 故意不含 created_time:指纹不变,防两端 created 精度/缺失差异恒 changed 死循环。 'bans' => array( 'table' => 'web_player_bans', 'keycols' => array('target', 'ban_type'), - 'map' => array('ban_type' => 'type', 'expire_time' => 'expire'), - 'cols' => array('target', 'ban_type', 'reason', 'source', 'expire_time'), + 'map' => array('ban_type' => 'type', 'expire_time' => 'expire', 'created_time' => 'created'), + 'cols' => array('target', 'ban_type', 'reason', 'source', 'expire_time', 'created_time'), 'hashcols' => array('target', 'ban_type', 'reason', 'source', 'expire_time'), 'intcols' => array('expire_time'), 'pull' => 0,