Merge branch 'fix/1118上线问题反馈' into 'feature/uat-tmp'
1118压缩包ocr识别问题修复 See merge request !4
Showing
1 changed file
with
9 additions
and
0 deletions
... | @@ -576,6 +576,15 @@ class UploadDocView(GenericView, DocHandler): | ... | @@ -576,6 +576,15 @@ class UploadDocView(GenericView, DocHandler): |
576 | self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args)) | 576 | self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args)) |
577 | return response.ok() | 577 | return response.ok() |
578 | 578 | ||
579 | if data_source == consts.DATA_SOURCE_LIST[-1] and document_scheme == consts.DOC_SCHEME_LIST[1]: | ||
580 | # 电子合同来源的压缩包直接返回,避免被ocr识别导致线上问题 | ||
581 | if document_name.endswith('.zip') \ | ||
582 | or document_name.endswith('.rar') \ | ||
583 | or document_name.endswith('.ZIP') \ | ||
584 | or document_name.endswith('.RAR'): | ||
585 | self.running_log.info('[doc upload success] [SETTLEMENT ECONTRACT zip skip] [args={0}]'.format(args)) | ||
586 | return response.ok() | ||
587 | |||
579 | # 2. 根据业务类型分库存储 | 588 | # 2. 根据业务类型分库存储 |
580 | doc_class, prefix = self.get_doc_class(business_type) | 589 | doc_class, prefix = self.get_doc_class(business_type) |
581 | doc = doc_class.objects.create( | 590 | doc = doc_class.objects.create( | ... | ... |
-
Please register or sign in to post a comment