7c92f402 by 周伟奇

fix bug

1 parent 1c6d880f
......@@ -246,7 +246,7 @@ class Command(BaseCommand, LoggerMixin):
json_data_1 = {
"file": file_data
}
response_1 = requests.post(self.ocr_url_1, data=json_data_1)
response_1 = requests.post(self.ocr_url_1, json=json_data_1)
if response_1.status_code == 200:
ocr_res_1 = response_1.json()
self.cronjob_log.info('{0} [ocr_1 result] [img={1}] [res={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!