forked from pjialin/py12306
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,21 +84,24 @@ REDIS_PORT = '6379' # Redis port | |
REDIS_PASSWORD = '' # Redis 密码 没有可以留空 | ||
|
||
# 邮箱配置 | ||
EMAIL_ENABLED = 0 # 是否开启邮件通知 | ||
EMAIL_SENDER = '[email protected]' # 邮件发送者 | ||
EMAIL_RECEIVER = '[email protected]' # 邮件接受者 # 可以多个 [[email protected], [email protected]] | ||
EMAIL_SERVER_HOST = 'localhost' # 邮件服务 host | ||
EMAIL_SERVER_USER = '' # 邮件服务登录用户名 | ||
EMAIL_SERVER_PASSWORD = '' # 邮件服务登录密码 | ||
EMAIL_ENABLED = 0 # 是否开启邮件通知 | ||
EMAIL_SENDER = '[email protected]' # 邮件发送者 | ||
EMAIL_RECEIVER = '[email protected]' # 邮件接受者 # 可以多个 [[email protected], [email protected]] | ||
EMAIL_SERVER_HOST = 'localhost' # 邮件服务 host | ||
EMAIL_SERVER_USER = '' # 邮件服务登录用户名 | ||
EMAIL_SERVER_PASSWORD = '' # 邮件服务登录密码 | ||
|
||
# Web 管理 | ||
WEB_ENABLE = 1 # 是否打开 Web 管理 | ||
WEB_USER = { # 登录信息 | ||
WEB_USER = { # 登录信息 | ||
'username': 'admin', | ||
'password': 'password' | ||
} | ||
WEB_PORT = 8008 # 监听端口 | ||
|
||
# 是否开启 CDN 查询 | ||
CDN_ENABLED = 0 | ||
|
||
# 查询任务 | ||
QUERY_JOBS = [ | ||
{ | ||
|
@@ -123,6 +126,7 @@ QUERY_JOBS = [ | |
'members': [ # 乘客姓名,会根据当前账号自动识别乘客类型 购买儿童票 设置两个相同的姓名即可,程序会自动识别 如 ['张三', '张三'] | ||
"张三", | ||
"王五", | ||
# 7, # 支持通过序号确定唯一乘客,序号查看可通过 python main.py -t 登录成功之后在 runtime/user/ 下找到对应的 用户名_passengers.json 文件,找到对应的 code 填入 | ||
], | ||
'allow_less_member': 0, # 是否允许余票不足时提交部分乘客 | ||
'seats': [ # 筛选座位 有先后顺序 :Array | ||
|
@@ -134,6 +138,8 @@ QUERY_JOBS = [ | |
"K356", | ||
"K1172", | ||
"K4184" | ||
], | ||
'except_train_numbers': [ # 筛选车次,排除车次 train_numbers 和 except_train_numbers 不可同时存在 | ||
] | ||
|
||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,8 +86,8 @@ EMAIL_ENABLED = 0 # 是否开启邮件通知 | |
EMAIL_SENDER = '[email protected]' # 邮件发送者 | ||
EMAIL_RECEIVER = '[email protected]' # 邮件接受者 # 可以多个 [[email protected], [email protected]] | ||
EMAIL_SERVER_HOST = 'localhost' # 邮件服务 host | ||
EMAIL_SERVER_USER = '' # 邮件服务登录用户名 | ||
EMAIL_SERVER_PASSWORD = '' # 邮件服务登录密码 | ||
EMAIL_SERVER_USER = '' # 邮件服务登录用户名 | ||
EMAIL_SERVER_PASSWORD = '' # 邮件服务登录密码 | ||
|
||
# Web 管理 | ||
WEB_ENABLE = 1 # 是否打开 Web 管理 | ||
|
@@ -97,6 +97,9 @@ WEB_USER = { # 登录信息 | |
} | ||
WEB_PORT = 8008 # 监听端口 | ||
|
||
# 是否开启 CDN 查询 | ||
CDN_ENABLED = 0 | ||
|
||
# 查询任务 | ||
QUERY_JOBS = [ | ||
{ | ||
|
@@ -121,6 +124,7 @@ QUERY_JOBS = [ | |
'members': [ # 乘客姓名,会根据当前账号自动识别乘客类型 购买儿童票 设置两个相同的姓名即可,程序会自动识别 如 ['张三', '张三'] | ||
"张三", | ||
"王五", | ||
# 7, # 支持通过序号确定唯一乘客,序号查看可通过 python main.py -t 登录成功之后在 runtime/user/ 下找到对应的 用户名_passengers.json 文件,找到对应的 code 填入 | ||
], | ||
'allow_less_member': 0, # 是否允许余票不足时提交部分乘客 | ||
'seats': [ # 筛选座位 有先后顺序 :Array | ||
|
@@ -132,6 +136,8 @@ QUERY_JOBS = [ | |
"K356", | ||
"K1172", | ||
"K4184" | ||
], | ||
'except_train_numbers': [ # 筛选车次,排除车次 train_numbers 和 except_train_numbers 不可同时存在 | ||
] | ||
|
||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters