7c92f402 by 周伟奇

fix bug

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