功能(站点广播): 实现延误与停运列车的双语广播功能

添加所有中日文广播所需的音频资源文件
将应用版本更新至v1.0.37
修复列车状态原因映射逻辑,补充广播所需的缺失字段
实现根据延误、停运状态生成对应双语广播序列的逻辑
更新测试脚本以适配区块阅读器并正确解析CRN的NBT数据
添加示例NBT转储文件作为参考
This commit is contained in:
2026-08-02 18:50:49 +08:00
parent f922ace154
commit 39dc446958
40 changed files with 190 additions and 75 deletions
+6 -4
View File
@@ -2,7 +2,7 @@
-- ============================================================================
-- 1. Configuration & Constants
-- ============================================================================
local APP_VERSION_TEXT = "v1.0.36"
local APP_VERSION_TEXT = "v1.0.37"
local CONFIG = {
CLOUD_URL = "ws://stabadmin.fse-media.group",
@@ -2403,8 +2403,8 @@ local function mapTrainStatusReason(statusId)
operational_disruption = "ops",
special_journey = "special",
out_of_service = "oos",
default_delay = "delay",
cancelled = "cancel"
default_delay = "default_delay",
cancelled = "cancelled"
}
return known[tail] or tail
end
@@ -2537,7 +2537,9 @@ function Main.loop()
destination = destination,
eta = tostring(etaSeconds) .. "s",
etaSeconds = etaSeconds,
delay = delayMinutes
delay = delayMinutes,
cancelled = cancelled,
reason = reason
})
end
end