Commit 28f9f9a2 authored by lixiaofang's avatar lixiaofang

修改接口返回参数

parent 81f7fa53
...@@ -280,8 +280,8 @@ def search_physical(query="", offset=0, size=10): ...@@ -280,8 +280,8 @@ def search_physical(query="", offset=0, size=10):
group_ids_list = [] group_ids_list = []
if len(result_dicts["hits"]) > 0: if len(result_dicts["hits"]) > 0:
group_ids_list = [item["_source"]["id"] for item in result_dicts["hits"]] group_ids_list = [item["_source"]["id"] for item in result_dicts["hits"]]
return {"search_topic_ids": group_ids_list} return {"search_pictorial_ids": group_ids_list}
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return {"search_topic_ids": []} return {"search_pictorial_ids": []}
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