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
f94fdf79
authored
2023-01-09 18:09:38 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/fsm-full' into 'feature/uat-tmp'
fsm http 更新 See merge request !9
2 parents
3d204fe8
1f2a4883
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 @
f94fdf7
...
...
@@ -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