1f2a4883 by 王聪

fsm http 更新

1 parent ce75072d
......@@ -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(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!