Commit 488a6950 authored by 李延哲's avatar 李延哲

Merge branch 'hotfix/del_question' into 'test'

获取运营配置信息

See merge request alpha/sun!131
parents 8722e6e9 ada2d351
......@@ -127,10 +127,19 @@ class TagTypeUpdateOrCreateView(APIView):
class TagRegisterUpdateView(APIView):
def get(self, request):
data = {}
try:
data = self.rpc['venus/sun/tag/register_tag/get']().unwrap()
except Exception as e:
error_logger.error(u'拉取信息失败')
raise
return data
def post(self, request):
ids = request.POST.get('tag_ids')
try:
self.rpc['venus/sun/tag/refister_tag/update'](ids=ids).unwrap()
self.rpc['venus/sun/tag/register_tag/update'](ids=ids).unwrap()
except Exception as e:
error_logger.error(u'配置失败')
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