97463cc8 by 冯轩

MOD:retrigger 区分 e-bs,e-invoice

1 parent 49e50700
......@@ -2134,6 +2134,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') \
......@@ -2194,6 +2202,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!