Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
saturn
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
saturn
Commits
c8767792
Commit
c8767792
authored
Feb 16, 2019
by
zhanglu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/Sensitive' into 'master'
fix Sensitive See merge request
alpha/saturn!17
parents
5abc8c42
e1531ba3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
sensitive.py
api/utils/sensitive.py
+11
-2
No files found.
api/utils/sensitive.py
View file @
c8767792
...
...
@@ -93,11 +93,20 @@ class Sensitive(object):
if
not
data
or
"detail"
in
data
:
# 程序出错啦
return
action
=
data
.
get
(
"result"
,
{})
.
get
(
"action"
,
0
)
result
=
data
.
get
(
"result"
,
{})
if
result
:
action
=
result
.
get
(
"action"
,
0
)
else
:
action
=
0
if
action
==
0
or
action
==
1
:
# "通过"
return
[]
lables
=
data
.
get
(
"result"
,
{})
.
get
(
"labels"
,
[])
if
result
:
lables
=
result
.
get
(
"labels"
,
[])
else
:
lables
=
[]
for
lable
in
lables
:
hints
.
extend
(
lable
.
get
(
'details'
,
{})
.
get
(
"hint"
))
...
...
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