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
a89c8e28
authored
2024-07-16 16:39:52 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:bug
1 parent
fe02ac2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
a89c8e2
...
...
@@ -1895,12 +1895,12 @@ class GoView(GenericView):
return
response
.
error_msg
(
msg
=
'识别错误'
)
class
InvoiceExcelView
(
GenericView
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
# 下载发票excel
@use_args
(
invoice_download_args
,
location
=
'
data
'
)
def
pos
t
(
self
,
request
,
args
):
@use_args
(
invoice_download_args
,
location
=
'
querystring
'
)
def
ge
t
(
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'
))
...
...
@@ -1941,11 +1941,11 @@ class InvoiceExcelView(GenericView):
url
,
json
.
dumps
(
body
),
traceback
.
format_exc
()))
class
InvoiceQueryInfoView
(
GenericView
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
@use_args
(
invoice_download_args
,
location
=
'
data
'
)
def
pos
t
(
self
,
request
,
args
):
@use_args
(
invoice_download_args
,
location
=
'
querystring
'
)
def
ge
t
(
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'
))
...
...
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