e40ee582 by 冯轩

fix

1 parent e0ef1178
...@@ -1505,7 +1505,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1505,7 +1505,7 @@ class Command(BaseCommand, LoggerMixin):
1505 # error_list.append(1) 1505 # error_list.append(1)
1506 # return 1506 # return
1507 elif classify_1_str == '12': # wenxin bs 1507 elif classify_1_str == '12': # wenxin bs
1508 self.online_log.info('{0} [pdf_2_img_2_queue weixin] [task={1}] [times={2}] [pdf_path={3}]'.format(self.log_base, task_str, times, pdf_path)) 1508 self.online_log.info('{0} [pdf_2_img_2_queue weixin] [task={1}] [pdf_path={2}]'.format(self.log_base, task_str, pdf_path))
1509 try: 1509 try:
1510 # pdf下载 处理 图片存储 识别 1510 # pdf下载 处理 图片存储 识别
1511 for times in range(consts.RETRY_TIMES): 1511 for times in range(consts.RETRY_TIMES):
...@@ -1588,8 +1588,8 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1588,8 +1588,8 @@ class Command(BaseCommand, LoggerMixin):
1588 # contract_res[img_path_tmp] = img_contract_res 1588 # contract_res[img_path_tmp] = img_contract_res
1589 1589
1590 with lock: 1590 with lock:
1591 # res_dict[task_str] = contract_res 1591 res_str = '''{"/data/AFC/OCR_Files/60671/img/page_0_img_0.png":{"code":1,"msg":"success","data":[{"classify":12,"confidence":0.9999922513961792,"data":[{"summary":["冯轩","110109199202260310",null,null,"2025-06-30","2025-06-25","2025-06-30"],"cells":[{"start_row":0,"start_column":0,"words":"交易单号"},{"start_row":0,"start_column":1,"words":"交易时间"},{"start_row":0,"start_column":2,"words":"交易类型"},{"start_row":0,"start_column":3,"words":"收/支/其他"},{"start_row":0,"start_column":4,"words":"交易方式"},{"start_row":0,"start_column":5,"words":"金额(元)"},{"start_row":0,"start_column":6,"words":"交易对方"},{"start_row":0,"start_column":7,"words":"商户单号"},{"start_row":1,"start_column":0,"words":"4200002687202506298013\\n175397"},{"start_row":1,"start_column":1,"words":"2025-06-29\\n13:47:15"},{"start_row":1,"start_column":2,"words":"商户消费"},{"start_row":1,"start_column":3,"words":"支出"},{"start_row":1,"start_column":4,"words":"浦发银行储\\n蓄卡(9862)"},{"start_row":1,"start_column":5,"words":"333.00"},{"start_row":1,"start_column":6,"words":"美团平台商\\n户"},{"start_row":1,"start_column":7,"words":"20250629134707U\\n8927844819024394"},{"start_row":2,"start_column":0,"words":"1000039901017506286326\\n541033022"},{"start_row":2,"start_column":1,"words":"2025-06-28\\n21:07:37"},{"start_row":2,"start_column":2,"words":"微信红包"},{"start_row":2,"start_column":3,"words":"收入"},{"start_row":2,"start_column":4,"words":"/"},{"start_row":2,"start_column":5,"words":"1.20"},{"start_row":2,"start_column":6,"words":"默"},{"start_row":2,"start_column":7,"words":"1000039901202506\\n286326541033022"},{"start_row":3,"start_column":0,"words":"1000039901004506276276\\n744394049"},{"start_row":3,"start_column":1,"words":"2025-06-27\\n23:58:18"},{"start_row":3,"start_column":2,"words":"微信红包"},{"start_row":3,"start_column":3,"words":"收入"},{"start_row":3,"start_column":4,"words":"/"},{"start_row":3,"start_column":5,"words":"1.36"},{"start_row":3,"start_column":6,"words":"九日"},{"start_row":3,"start_column":7,"words":"1000039901202506\\n276276744394049"},{"start_row":4,"start_column":0,"words":"1000039901008506277372\\n907681001"},{"start_row":4,"start_column":1,"words":"2025-06-27\\n23:57:27"},{"start_row":4,"start_column":2,"words":"微信红包"},{"start_row":4,"start_column":3,"words":"收入"},{"start_row":4,"start_column":4,"words":"/"},{"start_row":4,"start_column":5,"words":"1.68"},{"start_row":4,"start_column":6,"words":"希望"},{"start_row":4,"start_column":7,"words":"1000039901202506\\n277372907681001"},{"start_row":5,"start_column":0,"words":"4200002672202506275479\\n881478"},{"start_row":5,"start_column":1,"words":"2025-06-27\\n19:50:21"},{"start_row":5,"start_column":2,"words":"商户消费"},{"start_row":5,"start_column":3,"words":"支出"},{"start_row":5,"start_column":4,"words":"浦发银行储\\n蓄卡(9862)"},{"start_row":5,"start_column":5,"words":"124.00"},{"start_row":5,"start_column":6,"words":"呷哺呷哺(北\\n京首联世纪\\n广场)"},{"start_row":5,"start_column":7,"words":";8011433A2506271\\n95001M000105"}],"verify":{"verify_res":"real","verify_info":[]}}]}]}}'''
1592 res_dict[task_str] = '{"/data/AFC/OCR_Files/60671/img/page_0_img_0.png":{"code":1,"msg":"success","data":[{"classify":12,"confidence":0.9999922513961792,"data":[{"summary":["冯轩","110109199202260310",null,null,"2025-06-30","2025-06-25","2025-06-30"],"cells":[{"start_row":0,"start_column":0,"words":"交易单号"},{"start_row":0,"start_column":1,"words":"交易时间"},{"start_row":0,"start_column":2,"words":"交易类型"},{"start_row":0,"start_column":3,"words":"收/支/其他"},{"start_row":0,"start_column":4,"words":"交易方式"},{"start_row":0,"start_column":5,"words":"金额(元)"},{"start_row":0,"start_column":6,"words":"交易对方"},{"start_row":0,"start_column":7,"words":"商户单号"},{"start_row":1,"start_column":0,"words":"4200002687202506298013\n175397"},{"start_row":1,"start_column":1,"words":"2025-06-29\n13:47:15"},{"start_row":1,"start_column":2,"words":"商户消费"},{"start_row":1,"start_column":3,"words":"支出"},{"start_row":1,"start_column":4,"words":"浦发银行储\n蓄卡(9862)"},{"start_row":1,"start_column":5,"words":"333.00"},{"start_row":1,"start_column":6,"words":"美团平台商\n户"},{"start_row":1,"start_column":7,"words":"20250629134707U\n8927844819024394"},{"start_row":2,"start_column":0,"words":"1000039901017506286326\n541033022"},{"start_row":2,"start_column":1,"words":"2025-06-28\n21:07:37"},{"start_row":2,"start_column":2,"words":"微信红包"},{"start_row":2,"start_column":3,"words":"收入"},{"start_row":2,"start_column":4,"words":"/"},{"start_row":2,"start_column":5,"words":"1.20"},{"start_row":2,"start_column":6,"words":"默"},{"start_row":2,"start_column":7,"words":"1000039901202506\n286326541033022"},{"start_row":3,"start_column":0,"words":"1000039901004506276276\n744394049"},{"start_row":3,"start_column":1,"words":"2025-06-27\n23:58:18"},{"start_row":3,"start_column":2,"words":"微信红包"},{"start_row":3,"start_column":3,"words":"收入"},{"start_row":3,"start_column":4,"words":"/"},{"start_row":3,"start_column":5,"words":"1.36"},{"start_row":3,"start_column":6,"words":"九日"},{"start_row":3,"start_column":7,"words":"1000039901202506\n276276744394049"},{"start_row":4,"start_column":0,"words":"1000039901008506277372\n907681001"},{"start_row":4,"start_column":1,"words":"2025-06-27\n23:57:27"},{"start_row":4,"start_column":2,"words":"微信红包"},{"start_row":4,"start_column":3,"words":"收入"},{"start_row":4,"start_column":4,"words":"/"},{"start_row":4,"start_column":5,"words":"1.68"},{"start_row":4,"start_column":6,"words":"希望"},{"start_row":4,"start_column":7,"words":"1000039901202506\n277372907681001"},{"start_row":5,"start_column":0,"words":"4200002672202506275479\n881478"},{"start_row":5,"start_column":1,"words":"2025-06-27\n19:50:21"},{"start_row":5,"start_column":2,"words":"商户消费"},{"start_row":5,"start_column":3,"words":"支出"},{"start_row":5,"start_column":4,"words":"浦发银行储\n蓄卡(9862)"},{"start_row":5,"start_column":5,"words":"124.00"},{"start_row":5,"start_column":6,"words":"呷哺呷哺(北\n京首联世纪\n广场)"},{"start_row":5,"start_column":7,"words":";8011433A2506271\n95001M000105"}],"verify":{"verify_res":"real","verify_info":[]}}]}]}}' 1592 res_dict[task_str] = json.loads(res_str)
1593 finish_queue.put(task_str) 1593 finish_queue.put(task_str)
1594 except Exception as e: 1594 except Exception as e:
1595 try: 1595 try:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!