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:
@@ -1369,7 +1369,7 @@ router.post('/tickets/check', async (req, res) => {
|
||||
if (isSingleTicket) {
|
||||
const fareInfo = LogicService.computeFareBoth(cur.start, exitCode);
|
||||
if (!fareInfo || fareInfo.paid_segments !== 1) {
|
||||
return deny('非单区间');
|
||||
return deny('not_single_segment');
|
||||
}
|
||||
} else {
|
||||
if (!matchesStation(terminal)) return deny('wrong_station');
|
||||
|
||||
Reference in New Issue
Block a user