From a3ff8664ee88ded2cdaa62172274e3f7456750c0 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Mon, 17 Aug 2026 17:39:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(station=5Fbroadcast):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20Utils=20=E4=B8=BA=20nil=20=E5=AF=BC=E8=87=B4=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=B4=A9=E6=BA=83=E7=9A=84=E5=89=8D=E5=90=91=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E9=97=AE=E9=A2=98=20-=20=E5=8E=9F=E5=9B=A0:=20Lua=20l?= =?UTF-8?q?ocal=20=E5=8F=98=E9=87=8F=E6=8C=89=E5=A3=B0=E6=98=8E=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E8=B5=B7=E4=BD=9C=E7=94=A8=E5=9F=9F=EF=BC=8CPeriphera?= =?UTF-8?q?ls.init()=20=E5=9C=A8=20L96=20=E5=AE=9A=E4=B9=89=EF=BC=88?= =?UTF-8?q?=E4=BD=93=E5=86=85=20L188=20=E5=BC=95=E7=94=A8=20Utils.log?= =?UTF-8?q?=EF=BC=89=EF=BC=8C=E8=80=8C=20local=20Utils=3D{}=20=E5=8E=9F?= =?UTF-8?q?=E6=9C=AC=E5=9C=A8=20L195=20=E6=89=8D=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=87=BD=E6=95=B0=E4=BD=93=E5=86=85?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E6=88=90=20=5FG.Utils=EF=BC=88=E5=85=A8?= =?UTF-8?q?=E5=B1=80=EF=BC=8Cnil=EF=BC=89=20-=20=E4=BF=AE=E5=A4=8D:=20?= =?UTF-8?q?=E5=9C=A8=E6=96=87=E4=BB=B6=20L71=20=E9=99=84=E8=BF=91=E9=9B=86?= =?UTF-8?q?=E4=B8=AD=E5=89=8D=E5=90=91=E5=A3=B0=E6=98=8E=E6=89=80=E6=9C=89?= =?UTF-8?q?=E9=A1=B6=E5=B1=82=E6=A8=A1=E5=9D=97=EF=BC=88Peripherals=20/=20?= =?UTF-8?q?Utils=20/=20Display=20/=20Audio=20/=20Network=20/=20Main?= =?UTF-8?q?=EF=BC=89=EF=BC=8C=E5=88=A0=E9=99=A4=E5=90=84=E7=AB=A0=E8=8A=82?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E9=87=8D=E5=A4=8D=E7=9A=84=20local=20Module?= =?UTF-8?q?=20=3D=20{}=EF=BC=8C=E4=BF=9D=E8=AF=81=20Lua=20=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=97=B6=E8=83=BD=E6=AD=A3=E7=A1=AE=E6=8D=95=E8=8E=B7?= =?UTF-8?q?=20local=20=E4=B8=8A=E5=80=BC=20-=20APP=5FVERSION=5FTEXT=20bump?= =?UTF-8?q?=20=E5=88=B0=20v1.0.108?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- station_broadcast.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/station_broadcast.lua b/station_broadcast.lua index 0744095..df7f45d 100644 --- a/station_broadcast.lua +++ b/station_broadcast.lua @@ -1,6 +1,6 @@ -- 1. Configuration & Constants -local APP_VERSION_TEXT = "v1.0.107" +local APP_VERSION_TEXT = "v1.0.108" local CONFIG = { CLOUD_URL = "ws://stabadmin.fse-media.group", @@ -69,6 +69,11 @@ local State = { -- 3. Peripherals Setup local Peripherals = {} +local Utils = {} +local Display = {} +local Audio = {} +local Network = {} +local Main = {} function Peripherals.isTrainStationPeripheral(name) if not name then @@ -190,7 +195,6 @@ end -- 4. Utility Functions -local Utils = {} function Utils.log(level, message) if level == "DEBUG" and not CONFIG.DEBUG then return end @@ -1106,7 +1110,6 @@ end -- 5. Audio System -local Audio = {} function Audio.createStream() local chunks = {} @@ -2718,7 +2721,6 @@ end -- ============================================================================ -- 6. Network System -- ============================================================================ -local Network = {} function Network.connect() if State.ws then return end @@ -3080,7 +3082,6 @@ end -- 7. Display System -local Display = {} function Display.render() local mon = Peripherals.primaryMonitor @@ -3490,7 +3491,7 @@ end -- 8. Main Logic -local Main = {} + State.announcedApproaching = {} State.announcedAlerts = {} State.pendingAlerts = {}