Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
dataDocking
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit de5c4ba9
authored
Mar 23, 2020
by
李杨杨
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
三方平台返回400时对重发服务响应200
1 parent
ad851a9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
thrid_data/recvdata_py.tar.gz
thrid_data/recvdata_py/app.py
thrid_data/recvdata_py.tar.gz
View file @
de5c4ba
This file is too large to display.
thrid_data/recvdata_py/app.py
View file @
de5c4ba
...
...
@@ -809,7 +809,15 @@ def recv_data():
detail
=
'unreachable'
else
:
thrid_code
=
status_code
detail
=
json
.
loads
(
message
)[
'Detail'
]
try
:
detail
=
json
.
loads
(
message
)[
'Detail'
]
except
:
detail
=
''
if
thrid_code
==
400
:
thrid_code
=
200
detail
=
'thrid_code:400, '
+
detail
result
.
setdefault
(
'code'
,
thrid_code
)
result
.
setdefault
(
'message'
,
detail
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment