Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
钟尚武
sun
Commits
57457b0e
Commit
57457b0e
authored
5 years ago
by
haowang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code
parent
3bcb153c
master
dev
like-pre/r01
quick-reply
refactor
test
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
word_parent.py
api/word_parent.py
+2
-1
No files found.
api/word_parent.py
View file @
57457b0e
...
@@ -32,11 +32,12 @@ class WordParentCreateView(APIView):
...
@@ -32,11 +32,12 @@ class WordParentCreateView(APIView):
content_ad
=
request
.
POST
.
get
(
'content_ad'
,
''
)
content_ad
=
request
.
POST
.
get
(
'content_ad'
,
''
)
makeup_ad
=
request
.
POST
.
get
(
'makeup_ad'
,
''
)
makeup_ad
=
request
.
POST
.
get
(
'makeup_ad'
,
''
)
dress_ad
=
request
.
POST
.
get
(
'dress_ad'
,
''
)
dress_ad
=
request
.
POST
.
get
(
'dress_ad'
,
''
)
gender
=
request
.
POST
.
get
(
'gender'
,
0
)
if
not
name
:
if
not
name
:
return
r'缺少参数'
return
r'缺少参数'
data
=
self
.
rpc
[
'venus/sun/word_parent/add'
](
name
=
name
,
children_words
=
children_words
,
content_ad
=
content_ad
,
makeup_ad
=
makeup_ad
,
dress_ad
=
dress_ad
)
.
unwrap
()
data
=
self
.
rpc
[
'venus/sun/word_parent/add'
](
name
=
name
,
children_words
=
children_words
,
content_ad
=
content_ad
,
makeup_ad
=
makeup_ad
,
dress_ad
=
dress_ad
,
gender
=
gender
)
.
unwrap
()
return
data
return
data
...
...
This diff is collapsed.
Click to expand it.
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