From dbf259efe55864076c32cf6012d55cfe150bb451 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sun, 2 Aug 2026 12:08:16 +0800 Subject: [PATCH] fix: Re-enable train pre-arrival broadcast on '1 min' to provide sufficient advance notice --- station_broadcast.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/station_broadcast.lua b/station_broadcast.lua index 6ba6fb0..bf0b4af 100644 --- a/station_broadcast.lua +++ b/station_broadcast.lua @@ -2,7 +2,7 @@ -- ============================================================================ -- 1. Configuration & Constants -- ============================================================================ -local APP_VERSION_TEXT = "v1.0.24" +local APP_VERSION_TEXT = "v1.0.25" local CONFIG = { CLOUD_URL = "ws://stabadmin.fse-media.group", @@ -2252,7 +2252,8 @@ function Main.loop() end if tName and etaVal then - if etaVal == "现在" or etaVal == "0" then + -- 恢复当ETA为“1”时也触发广播(满足提前预告的需求) + if etaVal == "现在" or etaVal == "0" or etaVal == "1" then local announceKey = tName .. "_" .. dest local now = os.epoch("utc") -- Prevent spamming: CRN's "1 min" can be fuzzy and stay for a while.