mirror of https://github.com/testerSunshine/12306
fix
parent
cbec16c509
commit
a3d4fed532
|
@ -2,4 +2,4 @@
|
|||
*.pyc
|
||||
*.yaml
|
||||
*.log
|
||||
idea/
|
||||
.idea/
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
- 本软件只供学习交流使用,务作为商业用途,交流群:286271084
|
||||
- 能为你抢到一张回家的票,是我最大的心愿
|
||||
|
||||
- 成功log,如果是购票失败的,请带上失败的log给我,我尽力帮你挑,也可加群一起交流,程序只是加速买票的过程,并不一定能买到票
|
||||
- 成功log,如果是购票失败的,请带上失败的log给我,我尽力帮你调,也可加群一起交流,程序只是加速买票的过程,并不一定能买到票
|
||||
```
|
||||
正在第355次查询 乘车日期: 2018-02-12 车次G4741,G2365,G1371,G1377,G1329 查询无票 代理设置 无 总耗时429ms
|
||||
车次: G4741 始发车站: 上海 终点站: 邵阳 二等座:有
|
||||
|
|
|
@ -26,7 +26,7 @@ set:
|
|||
- ""
|
||||
# 12306登录账号
|
||||
12306account:
|
||||
- uesr: ""
|
||||
- user: ""
|
||||
- pwd: ""
|
||||
|
||||
select_refresh_interval: 1
|
||||
|
@ -42,7 +42,7 @@ auto_code_type: 2
|
|||
|
||||
# 打码平台账号
|
||||
auto_code_account:
|
||||
uesr: ""
|
||||
user: ""
|
||||
pwd: ""
|
||||
|
||||
# 邮箱配置,如果抢票成功,将通过邮件配置通知给您
|
||||
|
|
|
@ -115,10 +115,10 @@ class GoLogin:
|
|||
:return:
|
||||
"""
|
||||
if self.is_auto_code and self.auto_code_type == 1:
|
||||
balance = DamatuApi(_get_yaml()["auto_code_account"]["uesr"], _get_yaml()["auto_code_account"]["pwd"]).getBalance()
|
||||
balance = DamatuApi(_get_yaml()["auto_code_account"]["user"], _get_yaml()["auto_code_account"]["pwd"]).getBalance()
|
||||
if int(balance) < 40:
|
||||
raise balanceException(u'余额不足,当前余额为: {}'.format(balance))
|
||||
user, passwd = _get_yaml()["set"]["12306acount"][0]["uesr"], _get_yaml()["set"]["12306account"][1]["pwd"]
|
||||
user, passwd = _get_yaml()["set"]["12306account"][0]["user"], _get_yaml()["set"]["12306account"][1]["pwd"]
|
||||
if not user or not passwd:
|
||||
raise UserPasswordException(u"温馨提示: 用户名或者密码为空,请仔细检查")
|
||||
login_num = 0
|
||||
|
|
Loading…
Reference in New Issue