Commit b44f8e33 authored by 杨成林's avatar 杨成林

Merge branch 'ycl/reply_vote' into 'test'

reply_vote

See merge request alpha/sun!324
parents 391cab48 c71af679
......@@ -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