Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
d955a3a2
Commit
d955a3a2
authored
Apr 25, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230425
parent
f1edd937
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
apps/view_atlas/view.py
+4
-2
No files found.
apps/view_atlas/view.py
View file @
d955a3a2
...
@@ -578,8 +578,8 @@ def industry_policy():
...
@@ -578,8 +578,8 @@ def industry_policy():
policy_name
=
req_dict
.
get
(
"policy_name"
)
# 政策名称
policy_name
=
req_dict
.
get
(
"policy_name"
)
# 政策名称
token
=
request
.
headers
[
"token"
]
token
=
request
.
headers
[
"token"
]
user_obj
=
verify_token
(
token
)
user_obj
=
verify_token
(
token
)
if
not
user_obj
:
#
if not user_obj:
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
'用户未登录。'
)
#
return jsonify(code=RET.SESSIONERR, msg='用户未登录。')
# 校验参数完整性
# 校验参数完整性
if
not
all
([
page
,
perpage
]):
if
not
all
([
page
,
perpage
]):
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不完整"
)
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不完整"
)
...
@@ -727,6 +727,8 @@ def industry_policy():
...
@@ -727,6 +727,8 @@ def industry_policy():
policy_data
=
[]
policy_data
=
[]
data
=
{}
data
=
{}
for
i
in
indu_policy
:
for
i
in
indu_policy
:
is_collect
=
''
if
user_obj
:
if
i
in
user_obj
.
industry_policy
:
if
i
in
user_obj
.
industry_policy
:
is_collect
=
'True'
is_collect
=
'True'
else
:
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment