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) + ' | ' +