f94fdf79 by 王聪

Merge branch 'feature/fsm-full' into 'feature/uat-tmp'

fsm http 更新

See merge request !9
2 parents 3d204fe8 1f2a4883
...@@ -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(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!