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
b44f8e33
Commit
b44f8e33
authored
Aug 21, 2019
by
杨成林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ycl/reply_vote' into 'test'
reply_vote See merge request
alpha/sun!324
parents
391cab48
c71af679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
reply.py
api/reply.py
+9
-2
No files found.
api/reply.py
View file @
b44f8e33
...
@@ -178,9 +178,16 @@ class ReplyManageBatchUpdate(APIView):
...
@@ -178,9 +178,16 @@ class ReplyManageBatchUpdate(APIView):
def
post
(
self
,
request
):
def
post
(
self
,
request
):
ids
=
json
.
loads
(
request
.
POST
.
get
(
'ids'
,
'[]'
))
ids
=
json
.
loads
(
request
.
POST
.
get
(
'ids'
,
'[]'
))
is_online
=
request
.
POST
.
get
(
'is_online'
,
None
)
data
=
{
}
if
request
.
POST
.
get
(
'is_online'
)
is
not
None
:
data
[
'is_online'
]
=
True
if
int
(
request
.
POST
.
get
(
'is_online'
,
0
))
else
False
if
request
.
POST
.
get
(
'is_quality'
)
is
not
None
:
data
[
'is_quality'
]
=
True
if
int
(
request
.
POST
.
get
(
'is_quality'
,
0
))
else
False
try
:
try
:
rep
=
self
.
rpc
[
'venus/sun/reply/manage/batch/update'
](
ids
=
ids
,
is_online
=
is_online
)
.
unwrap
()
rep
=
self
.
rpc
[
'venus/sun/reply/manage/batch/update'
](
ids
=
ids
,
data
=
data
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'更新-reply信息失败
%
s'
%
(
e
))
error_logger
.
error
(
u'更新-reply信息失败
%
s'
%
(
e
))
raise
raise
...
...
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