Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1f2a4883
authored
2023-01-09 18:07:48 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fsm http 更新
1 parent
ce75072d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
1f2a488
...
...
@@ -3285,7 +3285,10 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=
}
try
:
compare_log
.
info
(
"request java fsm api, url:{0}, body:{1}"
.
format
(
url
,
json
.
dumps
(
body
)))
resp
=
requests
.
post
(
url
,
data
=
body
)
headers
=
{
'Content-Type'
:
'application/json'
}
resp
=
requests
.
post
(
url
,
headers
=
headers
,
json
=
body
)
compare_log
.
info
(
"response from fsm api, resp:{0}"
.
format
(
resp
.
text
))
except
Exception
as
e
:
compare_log
.
error
(
"fsm full request to java error, url:{0}, param:{1}, errorMsg:{2}"
.
format
(
...
...
Write
Preview
Styling with
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