Commit b9618efd authored by 王浩's avatar 王浩

Merge branch 'feature/scroll' into 'test'

modify

See merge request !294
parents b1561973 af53186f
...@@ -240,6 +240,8 @@ class SearchDefaultKeyword(APIView): ...@@ -240,6 +240,8 @@ class SearchDefaultKeyword(APIView):
update = request.POST.get('update', '') update = request.POST.get('update', '')
try: try:
data = self.rpc['venus/sun/tag/search_default_keyword/edit'](data=update, id=id).unwrap() 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: except Exception as e:
error_logger.error(u'更新搜索默认关键字失败%s', e) error_logger.error(u'更新搜索默认关键字失败%s', e)
raise 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