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
21d0f7b0
authored
2025-09-15 16:05:58 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
merge
2 parents
c768faa5
6e296e35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
21d0f7b
...
...
@@ -1288,9 +1288,9 @@ class Command(BaseCommand, LoggerMixin):
shutil
.
move
(
pdf_path
,
target_pdf_path
)
if
'微信支付交易明细证明'
in
os
.
path
.
basename
(
pdf_path
)
or
'微信流水'
in
os
.
path
.
basename
(
pdf_path
):
pdf_task_str
=
consts
.
SPLIT_STR
.
join
([
business_type
,
str
(
pdf_doc
.
id
),
'12'
])
pdf_task_str
=
consts
.
SPLIT_STR
.
join
([
business_type
,
str
(
pdf_doc
.
id
),
'12'
,
re_ocr_flag
])
else
:
pdf_task_str
=
consts
.
SPLIT_STR
.
join
([
business_type
,
str
(
pdf_doc
.
id
),
'0'
])
pdf_task_str
=
consts
.
SPLIT_STR
.
join
([
business_type
,
str
(
pdf_doc
.
id
),
'0'
,
re_ocr_flag
])
pdf_task_str_list
.
append
(
pdf_task_str
)
except
Exception
as
e
:
self
.
online_log
.
warn
(
'{0} [zip_2_pdfs] [recreate pdf task failed] [task={1}] [pdf_path={2}]'
...
...
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