From 27da2b5c05f5aa8f6697840bd00f9d1cca9d7ce1 Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Wed, 30 Sep 2026 12:31:17 +0800 Subject: [PATCH] =?UTF-8?q?SN=E6=97=A5=E5=BF=97=E5=8A=A8=E4=BD=9C=E5=88=97?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E5=8C=96=EF=BC=9Aadmin.php=E4=B8=8Eplayer.ph?= =?UTF-8?q?p=E6=96=B0=E5=A2=9ESN=5FACTION=5FCN=E6=98=A0=E5=B0=84=EF=BC=8C?= =?UTF-8?q?=E8=A6=86=E7=9B=96issue=5Fadmin/cancel=5Fforce=E7=AD=89?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=8A=A8=E4=BD=9C=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin.php | 12 ++++++++++-- player.php | 13 +++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/admin.php b/admin.php index b8ef99f..c7a1238 100644 --- a/admin.php +++ b/admin.php @@ -4074,6 +4074,14 @@ const SN_LOST_CN = { auto_reissue: '♻️ 已补发', done: '✅ 已完成' }; +const SN_ACTION_CN = { + issue: '申领', issue_admin: '办理签发', backfill: '存量补登记', + cancel: '注销', cancel_force: '强制注销', reissue: '补发', + destroy: '销毁解绑', report: '报失', pickup_mismatch: '拾取归属不符', + illegal_craft: '非法合成', illegal_burn: '非法熔炼', bind: '永久绑定', + locate: '位置查询' +}; +function snActionCn(a) { return SN_ACTION_CN[a] || a; } function snStatusCn(s) { return SN_STATUS_CN[s] || s; } function snAdmSearch() { @@ -4235,11 +4243,11 @@ async function renderSnDetail(el, sn) { } html += '

📜 操作日志

' + snAdmLogTable(d.logs || [], ['时间', '动作', '玩家', '说明'], r => [ - snFmtTs(r.time), r.action, r.player, r.detail + snFmtTs(r.time), snActionCn(r.action), r.player, r.detail ]); html += '

📦 出入库登记

' + snAdmLogTable(d.stock || [], ['时间', '动作', '容器', '坐标', '领地', '玩家'], r => [ - snFmtTs(r.time), r.action, r.container_type || '-', + snFmtTs(r.time), snActionCn(r.action), r.container_type || '-', (r.world || '') + ' ' + r.x + ',' + r.y + ',' + r.z, r.in_land ? (r.land_name || '是') : '-', r.player || '-' ]); diff --git a/player.php b/player.php index 11abe4c..948a1ad 100644 --- a/player.php +++ b/player.php @@ -4088,6 +4088,15 @@ async function clearAllMemberPerms(landName, targetPlayer) { renderSn(document.getElementById('content')); } + const SN_ACTION_CN = { + issue: '申领', issue_admin: '办理签发', backfill: '存量补登记', + cancel: '注销', cancel_force: '强制注销', reissue: '补发', + destroy: '销毁解绑', report: '报失', pickup_mismatch: '拾取归属不符', + illegal_craft: '非法合成', illegal_burn: '非法熔炼', bind: '永久绑定', + locate: '位置查询' + }; + function snActionCn(a) { return SN_ACTION_CN[a] || a; } + async function snDoAction(action, sn) { const box = document.getElementById('snQueryInput'); sn = sn || (box ? box.value.trim() : ''); @@ -4166,7 +4175,7 @@ async function clearAllMemberPerms(landName, targetPlayer) { for (const l of logs) { html += '' + '' + escHtml(snFmtTime(l.time)) + '' + - '' + escHtml(l.action) + '' + + '' + escHtml(snActionCn(l.action)) + '' + '' + escHtml(l.player) + '' + '' + escHtml(l.detail) + ''; } @@ -4183,7 +4192,7 @@ async function clearAllMemberPerms(landName, targetPlayer) { const land = st.in_land ? (st.land_name || '是') : '-'; html += '' + '' + escHtml(snFmtTime(st.time)) + '' + - '' + escHtml(st.action) + '' + + '' + escHtml(snActionCn(st.action)) + '' + '' + escHtml(st.container_type || '-') + '' + '' + escHtml((st.world || '') + ' ' + st.x + ',' + st.y + ',' + st.z) + '' + '' + escHtml(land) + '' +