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
64ee3cbd
authored
2024-05-24 17:26:36 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:auto/v1
1 parent
5ccd03be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
64ee3cb
...
...
@@ -1632,6 +1632,18 @@ class AutoSettlementView(GenericView):
is_fsm
=
args
.
get
(
'is_fsm'
)
# 角色权限不符,返回空列表
token
=
request
.
META
.
get
(
"HTTP_AUTHORIZATION"
)
user_role
=
rh
.
get_token
(
token
[
-
11
:])
self
.
running_log
.
info
(
'[api doc] [user_role={0}] '
.
format
(
user_role
))
if
user_role
==
-
1
or
(
user_role
==
1
and
business_type
==
'HIL'
)
or
(
user_role
==
2
and
business_type
==
'AFC'
):
pagination
=
{
'current'
:
page
,
'total'
:
0
,
'page_size'
:
page_size
}
res
=
{
'pagination'
:
pagination
,
'doc_list'
:
[]
}
return
response
.
ok
(
data
=
res
)
if
isinstance
(
auto_result
,
int
):
auto_result
=
consts
.
RESULT_MAP
.
get
(
auto_result
)
if
isinstance
(
whole_result
,
int
):
...
...
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