修复循环断掉的bug

pull/187/head
wenxianping 2019-01-12 21:28:46 +08:00
parent 419c07409b
commit 941cbe6831
2 changed files with 119 additions and 118 deletions

View File

@ -83,6 +83,7 @@
- 测试下单接口是否可用有两个下单接口随便用哪个都ok - 测试下单接口是否可用有两个下单接口随便用哪个都ok
- 如果下载验证码过期或者下载失败的问题应该是12306封ip的策略多重试几次12306现在封服务器(阿里云和腾讯云)ip比较严重尽量不要放在服务器里面 - 如果下载验证码过期或者下载失败的问题应该是12306封ip的策略多重试几次12306现在封服务器(阿里云和腾讯云)ip比较严重尽量不要放在服务器里面
- 目前12306对服务器ip比较敏感大家还是在自己家里挂着吧
- 感谢一下小伙伴对本项目提供的帮助 - 感谢一下小伙伴对本项目提供的帮助
- @sun7127@126.com - @sun7127@126.com
- @ 才 - @ 才

View File

@ -190,7 +190,6 @@ class select:
def main(self): def main(self):
# autoSynchroTime() # 同步时间 # autoSynchroTime() # 同步时间
try:
self.cdn_certification() self.cdn_certification()
l = liftTicketInit(self) l = liftTicketInit(self)
l.reqLiftTicketInit() l.reqLiftTicketInit()
@ -204,6 +203,7 @@ class select:
s = getPassengerDTOs(session=self, ticket_peoples=self.ticke_peoples) s = getPassengerDTOs(session=self, ticket_peoples=self.ticke_peoples)
s.sendGetPassengerDTOs() s.sendGetPassengerDTOs()
while 1: while 1:
try:
num += 1 num += 1
now = datetime.datetime.now() # 感谢群里大佬提供整点代码 now = datetime.datetime.now() # 感谢群里大佬提供整点代码
configCommon.checkSleepTime(self) # 晚上到点休眠 configCommon.checkSleepTime(self) # 晚上到点休眠