Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
97463cc8
authored
2025-09-15 16:33:24 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:retrigger 区分 e-bs,e-invoice
1 parent
49e50700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
97463cc
...
...
@@ -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'
)
\
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment