a319edef by 冯轩

Merge branch 'feature/portal-reocr' into feature/uat-tmp

2 parents c5eba879 97463cc8
......@@ -2324,6 +2324,14 @@ class DocReOcrView(GenericView, DocHandler):
if keyword in doc.document_name:
classify_1 = classify_1_tmp
break
if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name):
classify_1 = 12
self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id))
if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name):
classify_1 = 29
self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id))
if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \
......@@ -2384,6 +2392,14 @@ class BatchReOcrView(GenericView, DocHandler):
if keyword in doc.document_name:
classify_1 = classify_1_tmp
break
if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name):
classify_1 = 12
self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id))
if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name):
classify_1 = 29
self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id))
if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!