print 302 log and update version 1.1.105

pull/308/head
文贤平 2019-09-05 11:44:02 +08:00
parent f970b3e73e
commit f86f4877cc
3 changed files with 5 additions and 4 deletions

View File

@ -39,7 +39,7 @@ TO_STATION = ""
# "无座",
# "动卧",
SET_TYPE = [
"二等座",
"",
]
# 当余票小于乘车人,如果选择优先提交,则删减联系人和余票数一致在提交
@ -82,7 +82,7 @@ EMAIL_CONF = {
"notice_email_list": "",
"username": "",
"password": "",
"host": "smtp.qq.com",
"host": "",
}
# 是否开启 pushbear 微信提醒, 使用前需要前往 http://pushbear.ftqq.com 扫码绑定获取 send_key 并关注获得抢票结果通知的公众号
@ -128,4 +128,4 @@ PASSENGER_TICKER_STR = {
}
# 软件版本
RE_VERSION = "1.1.104"
RE_VERSION = "1.1.105"

View File

@ -11,7 +11,7 @@ rushRefreshMinTimeIntval = 2000
rushRefreshMaxTimeIntval = 3600000
rushRefreshTimeIntval = 100
# 最早运行时间
maxRunTime = 7
maxRunTime = 6
# 程序停止时间
maxRunStopTime = 23
# 可售天数

View File

@ -161,6 +161,7 @@ class HTTPClient(object):
else:
return response.content.decode("utf8", "ignore") if isinstance(response.content, bytes) else response.content
else:
print(f"url: {urls['req_url']}返回参数为空, 接口状态码: {response.status_code}")
logger.log(
u"url: {} 返回参数为空".format(urls["req_url"]))
continue