97463cc8 by 冯轩

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

1 parent 49e50700
...@@ -2134,6 +2134,14 @@ class DocReOcrView(GenericView, DocHandler): ...@@ -2134,6 +2134,14 @@ class DocReOcrView(GenericView, DocHandler):
2134 if keyword in doc.document_name: 2134 if keyword in doc.document_name:
2135 classify_1 = classify_1_tmp 2135 classify_1 = classify_1_tmp
2136 break 2136 break
2137
2138 if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name):
2139 classify_1 = 12
2140 self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id))
2141
2142 if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name):
2143 classify_1 = 29
2144 self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id))
2137 2145
2138 2146
2139 if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ 2147 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): ...@@ -2194,6 +2202,14 @@ class BatchReOcrView(GenericView, DocHandler):
2194 if keyword in doc.document_name: 2202 if keyword in doc.document_name:
2195 classify_1 = classify_1_tmp 2203 classify_1 = classify_1_tmp
2196 break 2204 break
2205
2206 if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name):
2207 classify_1 = 12
2208 self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id))
2209
2210 if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name):
2211 classify_1 = 29
2212 self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id))
2197 2213
2198 2214
2199 if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ 2215 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!