chore: 更新各文件版本号,修复接口错误提示并优化配置规则
1. 更新package.json版本至1.0.13,gate.lua版本至v1.5.9,ticketmachine.lua版本至v1.5.10 2. 修改服务器接口的错误提示文案,将中文“非单区间”改为英文“not_single_segment” 3. 优化.trae/rules/目录下的提交规则配置文件格式与说明内容 4. 移除ticketmachine.lua中冗余的注释行
This commit is contained in:
+1
-3
@@ -1,6 +1,6 @@
|
||||
local CURRENT_STATION_CODE = 'Ticket-Machine'
|
||||
local API_BASE = 'http://ticket.fse-media.group/api'
|
||||
local VERSION = 'v1.5.9'
|
||||
local VERSION = 'v1.5.10'
|
||||
|
||||
-- ###########################
|
||||
-- Core HTTP & JSON Utilities
|
||||
@@ -2462,8 +2462,6 @@ local function showOnlineVoucher()
|
||||
|
||||
local ev, p1, p2, p3 = os.pullEvent()
|
||||
if ev == 'mouse_click' or ev == 'monitor_touch' then
|
||||
-- For mouse_click: p1=button, p2=x, p3=y
|
||||
-- For monitor_touch: p1=side, p2=x, p3=y
|
||||
for _, b in ipairs(Buttons) do if inRect(b, p2, p3) then clickSound(); if b.onClick then b.onClick() end; break end end
|
||||
elseif ev == 'char' and #code < 5 then code = code .. p1:upper()
|
||||
elseif ev == 'key' and p1 == keys.backspace then code = code:sub(1, -2)
|
||||
|
||||
Reference in New Issue
Block a user