From a78683bad29e67af19b16cb497b627c31eea1ce2 Mon Sep 17 00:00:00 2001 From: wenxianping <931128603@qq.com> Date: Mon, 7 Jan 2019 11:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cpu=E5=8D=A0=E7=94=A8?= =?UTF-8?q?=E8=BF=87=E9=AB=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- init/select_ticket_info.py | 2 +- inter/CheckUser.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2d5bab8..024d6fb 100755 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ ![image](https://github.com/testerSunshine/12306/blob/master/uml/uml.png) - 项目声明: - - 本软件只供学习交流使用,务作为商业用途,交流群号:286271084(已满), 请加2群:649992274 + - 本软件只供学习交流使用,务作为商业用途,交流群号:286271084(已满), 2群:649992274(已满),请加3群, 群号:632501142 - 能为你抢到一张回家的票,是我最大的心愿 - 成功log,如果是购票失败的,请带上失败的log给我,我尽力帮你调,也可加群一起交流,程序只是加速买票的过程,并不一定能买到票 diff --git a/init/select_ticket_info.py b/init/select_ticket_info.py index f046168..762b15a 100755 --- a/init/select_ticket_info.py +++ b/init/select_ticket_info.py @@ -86,7 +86,7 @@ class select: open_time = ticket_info_config["open_time"] print(u"*" * 50) - print(u"12306刷票小助手,最后更新于2019.01.02,请勿作为商业用途,交流群号:286271084(已满), 请加2群:649992274") + print(u"12306刷票小助手,最后更新于2019.01.07,请勿作为商业用途,交流群号:286271084(已满), 2群:649992274(已满),请加3群,群号:632501142") if is_by_time: method_notie = u"购票方式:根据时间区间购票\n可接受最早出发时间:{0}\n可接受最晚抵达时间:{1}\n可接受最长旅途时间:{2}\n可接受列车类型:{3}\n" \ .format(minutes_to_time(departure_time), minutes_to_time(arrival_time), minutes_to_time(take_time), diff --git a/inter/CheckUser.py b/inter/CheckUser.py index 1505c5e..3b341df 100644 --- a/inter/CheckUser.py +++ b/inter/CheckUser.py @@ -1,7 +1,7 @@ # coding=utf-8 import datetime +import time import wrapcache - from config import configCommon from config.TicketEnmu import ticket @@ -17,6 +17,7 @@ class checkUser: """ CHENK_TIME = 0.3 while 1: + time.sleep(0.1) # 防止cpu占用过高 configCommon.checkSleepTime(self.session) # 修复晚上查询线程休眠时,检查登录线程为休眠,造成快豆迅速消耗 if wrapcache.get("user_time") is None: check_user_url = self.session.urls["check_user_url"]