|
|
|
@ -9,19 +9,19 @@ TICKET_TYPE = 1
|
|
|
|
|
|
|
|
|
|
# 出发日期(list) "2018-01-06", "2018-01-07"
|
|
|
|
|
STATION_DATES = [
|
|
|
|
|
"2020-01-17"
|
|
|
|
|
"2020-01-18"
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# 填入需要购买的车次(list),"G1353"
|
|
|
|
|
# 修改车次填入规则,注:(以前设置的车次逻辑不变),如果车次填入为空,那么就是当日乘车所有车次都纳入筛选返回
|
|
|
|
|
# 不填车次是整个list为空才算,如果不是为空,依然会判断车次的,这种是错误的写法 [""], 正确的写法 []
|
|
|
|
|
STATION_TRAINS = ["G1120"]
|
|
|
|
|
STATION_TRAINS = []
|
|
|
|
|
|
|
|
|
|
# 出发城市,比如深圳北,就填深圳就搜得到
|
|
|
|
|
FROM_STATION = "广州"
|
|
|
|
|
FROM_STATION = "广州南"
|
|
|
|
|
|
|
|
|
|
# 到达城市 比如深圳北,就填深圳就搜得到
|
|
|
|
|
TO_STATION = "武汉"
|
|
|
|
|
TO_STATION = "隆回"
|
|
|
|
|
|
|
|
|
|
# 座位(list) 多个座位ex:
|
|
|
|
|
# "商务座",
|
|
|
|
@ -42,7 +42,7 @@ IS_MORE_TICKET = True
|
|
|
|
|
# 乘车人(list) 多个乘车人ex:
|
|
|
|
|
# "张三",
|
|
|
|
|
# "李四"
|
|
|
|
|
TICKET_PEOPLES = [""]
|
|
|
|
|
TICKET_PEOPLES = []
|
|
|
|
|
|
|
|
|
|
# 12306登录账号
|
|
|
|
|
USER = ""
|
|
|
|
@ -113,7 +113,7 @@ ORDER_MODEL = 1
|
|
|
|
|
IS_PROXY = 0
|
|
|
|
|
|
|
|
|
|
# 预售放票时间, 如果是捡漏模式,可以忽略此操作
|
|
|
|
|
OPEN_TIME = "12:59:50"
|
|
|
|
|
OPEN_TIME = "12:59:57"
|
|
|
|
|
# 1=使用selenium获取devicesID
|
|
|
|
|
# 2=使用网页端/otn/HttpZF/logdevice获取devicesId,这个接口的算法目前可能有点问题,如果登录一直302的请改为配置1
|
|
|
|
|
# 3=自己打开浏览器在headers-Cookies中抓取RAIL_DEVICEID和RAIL_EXPIRATION,这个就不用配置selenium
|
|
|
|
@ -126,8 +126,10 @@ CHROME_PATH = "/usr/src/app/chromedriver"
|
|
|
|
|
CHROME_CHROME_PATH = "/opt/google/chrome/google-chrome"
|
|
|
|
|
|
|
|
|
|
# 如果COOKIE_TYPE=3, 则需配置RAIL_EXPIRATION、RAIL_DEVICEID的值
|
|
|
|
|
RAIL_EXPIRATION = "1577033439142"
|
|
|
|
|
RAIL_DEVICEID = "PuV16sVaV-CTGsFZUuL8JLAk4OhuT1wgUYC_W3L2JZfWx8Ygx8LOPkko3PSOrK5_xSKhXjgyTMS8dBmj1RZHL2CKBTmVs6UG_yptlB4NJbGHldltrLMTUEgoDpSkpX2vzpGXgMQsTRzgOXfuQkAWwS4GjCxSmV3C; BIGipServerpassport=820510986.50215.0000; route=9036359bb8a8a461c164a04f8f50b252"
|
|
|
|
|
RAIL_EXPIRATION = ""
|
|
|
|
|
RAIL_DEVICEID = ""
|
|
|
|
|
# RAIL_EXPIRATION = "1577034103293"
|
|
|
|
|
# RAIL_DEVICEID = "CDno29Erc_Pf3FSXb4dzq-Op64EhWrsi5yUZKVIKR1MAfYo2qFlCeXD8VkexY7_1qg-ClV-fE8j9jgVlPZxRh3wVc2iqLe_5A8sdr62qZx4B22JPF8lFCjpgTKZ5ODW90HJd5tiQsJ1KR9nOqHRxHj1FT5LEIwfw"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 1=>为一直随机ua,2->只启动的时候随机一次ua
|
|
|
|
@ -152,4 +154,4 @@ MAX_TIME = 3
|
|
|
|
|
MIN_TIME = 1
|
|
|
|
|
|
|
|
|
|
# 软件版本
|
|
|
|
|
RE_VERSION = "1.2.003"
|
|
|
|
|
RE_VERSION = "1.2.004"
|
|
|
|
|