mirror of https://github.com/testerSunshine/12306
修改cpu占用过高问题
parent
cfebf48646
commit
a78683bad2
|
@ -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给我,我尽力帮你调,也可加群一起交流,程序只是加速买票的过程,并不一定能买到票
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue