Skip to content

Commit 008c7ec

Browse files
fix 候补 497
1 parent 88a1941 commit 008c7ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inter/Query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ def sendQuery(self):
151151
"cdn": self.httpClint.cdn,
152152
"status": True,
153153
}
154-
elif is_ticket_pass == '无' and ticket_info[-2] == "1" and TickerConfig.TICKET_TYPE is 2:
154+
elif is_ticket_pass == '无' and ticket_info[37] == "1" and TickerConfig.TICKET_TYPE is 2:
155155
"""
156156
is_ticket_pass如果有别的显示,但是可以候补,可以提issues提出来,附上query log,我将添加上
157157
判断车次是否可以候补
158158
目前的候补机制是只要一有候补位置,立马提交候补
159159
"""
160160
# 如果最后一位为1,则是可以候补的,不知道这些正确嘛?
161-
nate = list(ticket_info[-1])
161+
nate = list(ticket_info[38])
162162
if wrapcache.get(f"hb{ticket_info[2]}"):
163163
continue
164164
for set_type in TickerConfig.SET_TYPE:

0 commit comments

Comments
 (0)