97463cc8 by 冯轩

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

1 parent 49e50700
......@@ -2135,6 +2135,14 @@ class DocReOcrView(GenericView, DocHandler):
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') \
or doc.document_name.endswith('.RAR'):
......@@ -2195,6 +2203,14 @@ class BatchReOcrView(GenericView, DocHandler):
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') \
or doc.document_name.endswith('.RAR'):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!