From 81f58b58bb4e0e8ab64323bcc28430d6df73c3f5 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sat, 1 Aug 2026 22:15:59 +0800 Subject: [PATCH] Fix: Lua client config screen overwritten by logs, and fix temp broadcast preview URL --- CloudServer/server.js | 4 ++-- station_broadcast.lua | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CloudServer/server.js b/CloudServer/server.js index f225a27..2df7821 100644 --- a/CloudServer/server.js +++ b/CloudServer/server.js @@ -2715,7 +2715,7 @@ app.post('/api/temp-broadcast/build', (req, res) => { res.json({ success: true, broadcastId: built.broadcastId, - wavUrl: `/uploads/temp-broadcast/${path.basename(built.wavPath)}`, + wavUrl: `/media/temp/${path.basename(built.wavPath)}`, durationSec: built.durationSec }); } catch (e) { @@ -2746,7 +2746,7 @@ app.post('/api/temp-broadcast/compose', express.json(), async (req, res) => { res.json({ success: true, broadcastId: built.broadcastId, - wavUrl: `/uploads/temp-broadcast/${path.basename(built.wavPath)}`, + wavUrl: `/media/temp/${path.basename(built.wavPath)}`, durationSec: built.durationSec }); } catch (e) { diff --git a/station_broadcast.lua b/station_broadcast.lua index cbca4cd..924626b 100644 --- a/station_broadcast.lua +++ b/station_broadcast.lua @@ -223,6 +223,7 @@ function Utils.getAvailableDepartureBeeps() end function Utils.promptSlaveIdentity() + State.inConfig = true while true do local availBeeps = Utils.getAvailableDepartureBeeps() local availStr = table.concat(availBeeps, ", ") @@ -283,6 +284,7 @@ function Utils.promptSlaveIdentity() term.setBackgroundColor(colors.black) term.setTextColor(colors.white) term.clear() + State.inConfig = false return true end term.setCursorPos(1, 12) @@ -297,6 +299,7 @@ function Utils.promptSlaveIdentity() end function Utils.promptConfig() + State.inConfig = true local manual = Utils.loadStationIdentity() local currentCode = manual.station_code or State.stationCode or "" local currentPlatform = manual.station_platform or State.stationPlatform or "1" @@ -361,6 +364,7 @@ function Utils.promptConfig() term.setBackgroundColor(colors.black) term.setTextColor(colors.white) term.clear() + State.inConfig = false break else term.setCursorPos(1, 12) @@ -2092,6 +2096,7 @@ function Display.render() end function Display.renderTerminal() + if State.inConfig then return end local w, h = term.getSize() -- Header