Merge branch 'feature/CHINARPA-3290-FSM-AUTO' into feature/uat-tmp
Showing
1 changed file
with
10 additions
and
2 deletions
... | @@ -3275,7 +3275,15 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= | ... | @@ -3275,7 +3275,15 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= |
3275 | is_ca, is_cms)) | 3275 | is_ca, is_cms)) |
3276 | # 调用java fsm 比对流程接口(http) | 3276 | # 调用java fsm 比对流程接口(http) |
3277 | # 调用Java fsm 比对流程接口, fsm 是se流程, ca可以暂时忽略 | 3277 | # 调用Java fsm 比对流程接口, fsm 是se流程, ca可以暂时忽略 |
3278 | url = conf.FSM_URL | 3278 | auto_class = HILAutoSettlement if application_entity == consts.HIL_PREFIX else AFCAutoSettlement |
3279 | auto_obj = auto_class.objects.filter(application_id=application_id, on_off=True).first() | ||
3280 | if auto_obj is not None: | ||
3281 | url = conf.FSM_AUTO_URL | ||
3282 | is_auto = True | ||
3283 | else: | ||
3284 | url = conf.FSM_URL | ||
3285 | is_auto = False | ||
3286 | |||
3279 | body = { | 3287 | body = { |
3280 | 'applicationId': application_id, | 3288 | 'applicationId': application_id, |
3281 | 'businessType': application_entity, | 3289 | 'businessType': application_entity, |
... | @@ -3284,7 +3292,7 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= | ... | @@ -3284,7 +3292,7 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= |
3284 | 'isCms': is_cms | 3292 | 'isCms': is_cms |
3285 | } | 3293 | } |
3286 | try: | 3294 | try: |
3287 | compare_log.info("request java fsm api, url:{0}, body:{1}".format(url, json.dumps(body))) | 3295 | compare_log.info("request java fsm api, url:{0}, body:{1}, is_auto:{2}".format(url, json.dumps(body), is_auto)) |
3288 | headers = { | 3296 | headers = { |
3289 | 'Content-Type': 'application/json' | 3297 | 'Content-Type': 'application/json' |
3290 | } | 3298 | } | ... | ... |
-
Please register or sign in to post a comment