From f669690a707683d852b647612157cc95882ec6b5 Mon Sep 17 00:00:00 2001 From: wenxianping <931128603@qq.com> Date: Sat, 13 Jan 2018 23:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=A2=E7=A5=A8=E9=80=9F?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + init/select_ticket_info.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e166d1..cea2d28 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ - 2018.1.13更新 - 修改下单验证码功能 + - 优化大量调用user接口导致联系人不能用,理论加快订票速度 - 增加邮箱功能 ``` #is_email: 是否需要邮件通知 ex: True or False 切记,邮箱加完一定要到config目录下测试emailConf功能是否正常 diff --git a/init/select_ticket_info.py b/init/select_ticket_info.py index 902f2ff..5dc624d 100644 --- a/init/select_ticket_info.py +++ b/init/select_ticket_info.py @@ -227,7 +227,8 @@ class select: self.submit_station() self.getPassengerTicketStr(self._station_seat[j].encode("utf8")) self.getRepeatSubmitToken() - self.user_info = self.getPassengerDTOs() + if not self.user_info: # 修改每次都调用用户接口导致用户接口不能用 + self.user_info = self.getPassengerDTOs() if self.checkOrderInfo(train_no, self._station_seat[j].encode("utf8")): break else: