Commit c71af679 authored by yangchenglin's avatar yangchenglin

reply_vote

parent 137fa863
......@@ -178,9 +178,16 @@ class ReplyManageBatchUpdate(APIView):
def post(self, request):
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:
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:
error_logger.error(u'更新-reply信息失败%s' % (e))
raise
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment