修改GD 无座问题

version 1.1.107
This commit is contained in:
xianping.wen
2019-09-09 10:54:05 +08:00
parent eb42e0d95f
commit 111321f12f
2 changed files with 8 additions and 8 deletions

View File

@@ -110,6 +110,8 @@ class query:
self.to_station_h,
seat_conf_2[j],
ticket_num))
if seat_conf_2[j] == "无座" and ticket_info[3][0] in ["G", "D"]:
seat = 30 # GD开头的无座直接强制改为二等座车次
if wrapcache.get(train_no):
print(ticket.QUERY_IN_BLACK_LIST.format(train_no))
continue