Commit b74ae112 authored by 许俊鹏's avatar 许俊鹏

取消参数判断

parent f0f72d57
......@@ -212,9 +212,7 @@ class TagSearchRecommendKeyword(APIView):
def post(self, request):
# 如果有id 走update 。 否则走创建
id = request.POST.get('id', None)
update = request.POST.get('update')
if not update:
return {'message': '参数不完整'}
update = request.POST.get('update', '')
try:
data = self.rpc['venus/sun/tag/recommend_keyword/edit'](data=update, id=id).unwrap()
except Exception as e:
......@@ -233,11 +231,8 @@ class SearchDefaultKeyword(APIView):
return data
def post(self, request):
id = request.POST.get('id', None)
update = request.POST.get('update')
if not update:
return {'message': '参数不完整'}
update = request.POST.get('update', '')
try:
data = self.rpc['venus/sun/tag/search_default_keyword/edit'](data=update, id=id).unwrap()
except Exception as e:
......
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