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
9eaa8ba9
authored
2025-09-04 15:18:57 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
test
1 parent
629427cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
src/apps/doc/internal_urls.py
src/apps/doc/views.py
src/apps/doc/internal_urls.py
View file @
9eaa8ba
...
...
@@ -12,5 +12,6 @@ urlpatterns = [
path
(
r'contract/v1'
,
views
.
SEContractView
.
as_view
()),
path
(
r'reocr'
,
views
.
DocReOcrView
.
as_view
()),
path
(
r'batch/reocr'
,
views
.
BatchReOcrView
.
as_view
()),
path
(
r'test'
,
views
.
TestView
.
as_view
()),
]
...
...
src/apps/doc/views.py
View file @
9eaa8ba
...
...
@@ -2081,11 +2081,7 @@ class InvoiceQueryInfoView(GenericView):
self
.
running_log
.
error
(
"invoice info request to java error, url:{0}, param:{1}, errorMsg:{2}"
.
format
(
url
,
json
.
dumps
(
body
),
traceback
.
format_exc
()))
class
DocReOcrView
(
GenericView
,
DocHandler
):
# permission_classes = [IsAuthenticated]
# authentication_classes = [OAuth2AuthenticationWithUser]
# required_scopes = ['write']
class
DocReOcrView
(
GenericView
):
# 现有文件重新识别接口
@use_args
(
doc_reocr_args
,
location
=
'data'
)
...
...
@@ -2196,3 +2192,13 @@ class BatchReOcrView(GenericView, DocHandler):
is_priority
,
enqueue_res
,
classify_1
))
return
response
.
ok
()
class
TestView
(
GenericView
):
@use_args
(
invoice_download_args
,
location
=
'data'
)
def
post
(
self
,
request
,
args
):
application_ids
=
args
.
get
(
'application_ids'
)
application_entity
=
args
.
get
(
'application_entity'
)
self
.
running_log
.
info
(
'[InvoiceExcelView] [user_role={0}] '
.
format
(
'111222333'
))
return
response
.
ok
()
\ No newline at end of file
...
...
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