From 3c71d64f797fb3bb6b53dcf7211135c9e4b3c28e Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Mon, 3 Aug 2026 10:40:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(station=5Fbroadcast):=20=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E7=89=88=E6=9C=AC=E8=87=B3v1.0.49=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4ETA=E8=A7=A6=E5=8F=91=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整列车接近播报的ETA更新阈值,从3秒改为15秒以减少频繁触发 --- station_broadcast.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/station_broadcast.lua b/station_broadcast.lua index bbf48bc..60963cd 100644 --- a/station_broadcast.lua +++ b/station_broadcast.lua @@ -1,6 +1,6 @@ -- 1. Configuration & Constants -local APP_VERSION_TEXT = "v1.0.48" +local APP_VERSION_TEXT = "v1.0.49" local CONFIG = { CLOUD_URL = "ws://stabadmin.fse-media.group", @@ -2705,7 +2705,7 @@ function Main.loop() if not pending then State.pendingApproaching[announceKey] = { since = now, lastEta = etaSeconds } else - if etaSeconds > (tonumber(pending.lastEta) or etaSeconds) + 3 then + if etaSeconds > (tonumber(pending.lastEta) or etaSeconds) + 15 then pending.since = now end pending.lastEta = etaSeconds