Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
py12306
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
python
py12306
Commits
ba489fd9
Commit
ba489fd9
authored
Jan 11, 2019
by
Jalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化提示
parent
a87f10c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
auth_code.py
py12306/helpers/auth_code.py
+1
-1
common_log.py
py12306/log/common_log.py
+1
-1
No files found.
py12306/helpers/auth_code.py
View file @
ba489fd9
...
@@ -52,7 +52,7 @@ class AuthCode:
...
@@ -52,7 +52,7 @@ class AuthCode:
result
=
response
.
json
()
result
=
response
.
json
()
if
result
.
get
(
'image'
):
if
result
.
get
(
'image'
):
return
result
.
get
(
'image'
)
return
result
.
get
(
'image'
)
raise
SSLError
raise
SSLError
(
'返回数据为空'
)
except
SSLError
as
e
:
except
SSLError
as
e
:
UserLog
.
add_quick_log
(
UserLog
.
add_quick_log
(
UserLog
.
MESSAGE_DOWNLAOD_AUTH_CODE_FAIL
.
format
(
e
,
self
.
retry_time
))
.
flush
()
UserLog
.
MESSAGE_DOWNLAOD_AUTH_CODE_FAIL
.
format
(
e
,
self
.
retry_time
))
.
flush
()
...
...
py12306/log/common_log.py
View file @
ba489fd9
...
@@ -23,7 +23,7 @@ class CommonLog(BaseLog):
...
@@ -23,7 +23,7 @@ class CommonLog(BaseLog):
MESSAGE_TEST_SEND_VOICE_CODE
=
'正在测试发送语音验证码...'
MESSAGE_TEST_SEND_VOICE_CODE
=
'正在测试发送语音验证码...'
MESSAGE_CONFIG_FILE_DID_CHANGED
=
'配置文件已修改,正在重新加载中'
MESSAGE_CONFIG_FILE_DID_CHANGED
=
'配置文件已修改,正在重新加载中
\n
'
def
__init__
(
self
):
def
__init__
(
self
):
super
()
.
__init__
()
super
()
.
__init__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment