fix(gate): correct update endpoint URL to use /api/check-update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local DEFAULT_SERVER_BASE = "http://ticket.fse-media.group"
|
local DEFAULT_SERVER_BASE = "http://ticket.fse-media.group"
|
||||||
local DEFAULT_SERVER_PATH = "/api/tickets/check"
|
local DEFAULT_SERVER_PATH = "/api/tickets/check"
|
||||||
local GATE_OPEN_SECONDS = 2
|
local GATE_OPEN_SECONDS = 2
|
||||||
local VERSION = "v1.5.15"
|
local VERSION = "v1.5.18"
|
||||||
local VERSION_CHECK_INTERVAL = 5
|
local VERSION_CHECK_INTERVAL = 5
|
||||||
|
|
||||||
local CONFIG_PATH = "gate_config.json"
|
local CONFIG_PATH = "gate_config.json"
|
||||||
@@ -156,7 +156,7 @@ end
|
|||||||
|
|
||||||
local function checkAndApplyUpdate()
|
local function checkAndApplyUpdate()
|
||||||
local serverBase = guessBaseFromStatusURL(serverURL)
|
local serverBase = guessBaseFromStatusURL(serverURL)
|
||||||
local txt = fetchHTTP(serverBase .. '/check-update?_t=' .. tostring(os.epoch and os.epoch("utc") or math.random(1, 999999)))
|
local txt = fetchHTTP(serverBase .. '/api/check-update?_t=' .. tostring(os.epoch and os.epoch("utc") or math.random(1, 999999)))
|
||||||
if not txt then return end
|
if not txt then return end
|
||||||
local data = jsonDecode(txt)
|
local data = jsonDecode(txt)
|
||||||
if not data or not data.update_counter then return end
|
if not data or not data.update_counter then return end
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
local VERSION = "v1.5.7"
|
local VERSION = "v1.5.18"
|
||||||
local MACHINE_SIDE = "bottom"
|
local MACHINE_SIDE = "bottom"
|
||||||
local PAYMENT_SIDE = "right"
|
local PAYMENT_SIDE = "right"
|
||||||
local PRESET_AMOUNTS = { 5, 10, 15, 20 }
|
local PRESET_AMOUNTS = { 5, 10, 15, 20 }
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
local CURRENT_STATION_CODE = 'Ticket-Machine'
|
local CURRENT_STATION_CODE = 'Ticket-Machine'
|
||||||
local API_BASE = 'http://ticket.fse-media.group/api'
|
local API_BASE = 'http://ticket.fse-media.group/api'
|
||||||
local VERSION = 'v1.5.15'
|
local VERSION = 'v1.5.18'
|
||||||
local UPDATE_CHECK_INTERVAL = 5
|
local UPDATE_CHECK_INTERVAL = 5
|
||||||
|
|
||||||
-- ###########################
|
-- ###########################
|
||||||
|
|||||||
Reference in New Issue
Block a user