From 690173c522d1ce8bf8800f557281f262d113070c Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sat, 11 Jul 2026 16:52:02 +0800 Subject: [PATCH] 3 --- gate.lua | 8 +++++++- ticketmachine.lua | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gate.lua b/gate.lua index f535c1d..74131d6 100644 --- a/gate.lua +++ b/gate.lua @@ -1,4 +1,4 @@ -local DEFAULT_SERVER_BASE = "http://ticket.fse-media.group" +local DEFAULT_SERVER_BASE = "https://ticket.fse-media.group" local DEFAULT_SERVER_PATH = "/api/tickets/check" local GATE_OPEN_SECONDS = 2 local VERSION = "v1.5.23" @@ -98,6 +98,12 @@ local function nowMs() return (os.epoch and os.epoch("utc")) or (os.time() * 1000) end +local function setServerConnected(ok) + if serverConnected == ok then return end + serverConnected = ok + serverLastChangeTs = (os.epoch and os.epoch('utc')) or (os.time() * 1000) + os.queueEvent('config_updated') +end local function fetchHTTP(url) if not http then diff --git a/ticketmachine.lua b/ticketmachine.lua index 74f9c4a..20df990 100644 --- a/ticketmachine.lua +++ b/ticketmachine.lua @@ -1,5 +1,5 @@ local CURRENT_STATION_CODE = 'Ticket-Machine' -local API_BASE = 'http://ticket.fse-media.group/api' +local API_BASE = 'https://ticket.fse-media.group/api' local VERSION = 'v1.5.22' local UPDATE_CHECK_INTERVAL = 5