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
e309ff02
authored
2023-04-28 17:42:38 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/CHINARPA-3290-FSM-AUTO' into feature/uat-tmp
2 parents
8abb734f
0448dd9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
e309ff0
...
...
@@ -3275,7 +3275,15 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=
is_ca
,
is_cms
))
# 调用java fsm 比对流程接口(http)
# 调用Java fsm 比对流程接口, fsm 是se流程, ca可以暂时忽略
url
=
conf
.
FSM_URL
auto_class
=
HILAutoSettlement
if
application_entity
==
consts
.
HIL_PREFIX
else
AFCAutoSettlement
auto_obj
=
auto_class
.
objects
.
filter
(
application_id
=
application_id
,
on_off
=
True
)
.
first
()
if
auto_obj
is
not
None
:
url
=
conf
.
FSM_AUTO_URL
is_auto
=
True
else
:
url
=
conf
.
FSM_URL
is_auto
=
False
body
=
{
'applicationId'
:
application_id
,
'businessType'
:
application_entity
,
...
...
@@ -3284,7 +3292,7 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=
'isCms'
:
is_cms
}
try
:
compare_log
.
info
(
"request java fsm api, url:{0}, body:{1}
"
.
format
(
url
,
json
.
dumps
(
body
)
))
compare_log
.
info
(
"request java fsm api, url:{0}, body:{1}
, is_auto:{2}"
.
format
(
url
,
json
.
dumps
(
body
),
is_auto
))
headers
=
{
'Content-Type'
:
'application/json'
}
...
...
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