Merge branch 'feature/portal-reocr' into feature/uat-tmp
Showing
1 changed file
with
16 additions
and
0 deletions
... | @@ -2324,6 +2324,14 @@ class DocReOcrView(GenericView, DocHandler): | ... | @@ -2324,6 +2324,14 @@ class DocReOcrView(GenericView, DocHandler): |
2324 | if keyword in doc.document_name: | 2324 | if keyword in doc.document_name: |
2325 | classify_1 = classify_1_tmp | 2325 | classify_1 = classify_1_tmp |
2326 | break | 2326 | break |
2327 | |||
2328 | if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name): | ||
2329 | classify_1 = 12 | ||
2330 | self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id)) | ||
2331 | |||
2332 | if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name): | ||
2333 | classify_1 = 29 | ||
2334 | self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id)) | ||
2327 | 2335 | ||
2328 | 2336 | ||
2329 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ | 2337 | 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): | ... | @@ -2384,6 +2392,14 @@ class BatchReOcrView(GenericView, DocHandler): |
2384 | if keyword in doc.document_name: | 2392 | if keyword in doc.document_name: |
2385 | classify_1 = classify_1_tmp | 2393 | classify_1 = classify_1_tmp |
2386 | break | 2394 | break |
2395 | |||
2396 | if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name): | ||
2397 | classify_1 = 12 | ||
2398 | self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id)) | ||
2399 | |||
2400 | if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name): | ||
2401 | classify_1 = 29 | ||
2402 | self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id)) | ||
2387 | 2403 | ||
2388 | 2404 | ||
2389 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ | 2405 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ | ... | ... |
-
Please register or sign in to post a comment