Commit 8c60946d authored by 许俊鹏's avatar 许俊鹏

Merge branch 'xujunpeng/feature/1_9' into 'test'

取消参数判断

See merge request !213
parents 8b810bfc b74ae112
......@@ -213,9 +213,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:
......@@ -234,11 +232,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