Merge branch 'feature/portal-reocr' into feature/uat-tmp
Showing
1 changed file
with
16 additions
and
0 deletions
| ... | @@ -2325,6 +2325,14 @@ class DocReOcrView(GenericView, DocHandler): | ... | @@ -2325,6 +2325,14 @@ class DocReOcrView(GenericView, DocHandler): |
| 2325 | classify_1 = classify_1_tmp | 2325 | classify_1 = classify_1_tmp |
| 2326 | break | 2326 | break |
| 2327 | 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)) | ||
| 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') \ |
| 2330 | or doc.document_name.endswith('.RAR'): | 2338 | or doc.document_name.endswith('.RAR'): |
| ... | @@ -2385,6 +2393,14 @@ class BatchReOcrView(GenericView, DocHandler): | ... | @@ -2385,6 +2393,14 @@ class BatchReOcrView(GenericView, DocHandler): |
| 2385 | classify_1 = classify_1_tmp | 2393 | classify_1 = classify_1_tmp |
| 2386 | break | 2394 | break |
| 2387 | 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)) | ||
| 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') \ |
| 2390 | or doc.document_name.endswith('.RAR'): | 2406 | or doc.document_name.endswith('.RAR'): | ... | ... |
-
Please register or sign in to post a comment