This commit is contained in:
2026-07-11 16:52:02 +08:00
parent 3040b294ef
commit 690173c522
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -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
+1 -1
View File
@@ -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