Commit af53186f authored by 于蓬勃's avatar 于蓬勃

modify

parent 64ff09c5
......@@ -240,6 +240,8 @@ class SearchDefaultKeyword(APIView):
update = request.POST.get('update', '')
try:
data = self.rpc['venus/sun/tag/search_default_keyword/edit'](data=update, id=id).unwrap()
if data == "fail":
return {"message": "搜索关键词设置不能超过10个"}
except Exception as e:
error_logger.error(u'更新搜索默认关键字失败%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