fsm http 更新
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -3285,7 +3285,10 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= | ... | @@ -3285,7 +3285,10 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= |
3285 | } | 3285 | } |
3286 | try: | 3286 | try: |
3287 | compare_log.info("request java fsm api, url:{0}, body:{1}".format(url, json.dumps(body))) | 3287 | compare_log.info("request java fsm api, url:{0}, body:{1}".format(url, json.dumps(body))) |
3288 | resp = requests.post(url, data=body) | 3288 | headers = { |
3289 | 'Content-Type': 'application/json' | ||
3290 | } | ||
3291 | resp = requests.post(url, headers=headers, json=body) | ||
3289 | compare_log.info("response from fsm api, resp:{0}".format(resp.text)) | 3292 | compare_log.info("response from fsm api, resp:{0}".format(resp.text)) |
3290 | except Exception as e: | 3293 | except Exception as e: |
3291 | compare_log.error("fsm full request to java error, url:{0}, param:{1}, errorMsg:{2}".format( | 3294 | compare_log.error("fsm full request to java error, url:{0}, param:{1}, errorMsg:{2}".format( | ... | ... |
-
Please register or sign in to post a comment