52647aaa by 王聪

1118压缩包ocr识别问题修复

1 parent 41e2b260
...@@ -573,6 +573,15 @@ class UploadDocView(GenericView, DocHandler): ...@@ -573,6 +573,15 @@ class UploadDocView(GenericView, DocHandler):
573 self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args)) 573 self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args))
574 return response.ok() 574 return response.ok()
575 575
576 if data_source == consts.DATA_SOURCE_LIST[-1] and document_scheme == consts.DOC_SCHEME_LIST[1]:
577 # 电子合同来源的压缩包直接返回,避免被ocr识别导致线上问题
578 if document_name.endswith('.zip') \
579 or document_name.endswith('.rar') \
580 or document_name.endswith('.ZIP') \
581 or document_name.endswith('.RAR'):
582 self.running_log.info('[doc upload success] [SETTLEMENT ECONTRACT zip skip] [args={0}]'.format(args))
583 return response.ok()
584
576 # 2. 根据业务类型分库存储 585 # 2. 根据业务类型分库存储
577 doc_class, prefix = self.get_doc_class(business_type) 586 doc_class, prefix = self.get_doc_class(business_type)
578 doc = doc_class.objects.create( 587 doc = doc_class.objects.create(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!