Commit 0c735399 authored by Hsinli's avatar Hsinli

adddd

parent 1f8842ed
Pipeline #9907 passed with stage
in 17 seconds
......@@ -39,8 +39,10 @@ class searchHistoryService extends Service {
const { ctx } = this;
let ret = {
hot_search: {
results: [],
count: 0
results: {
results: [],
count: 0
}
},
search_history: {
results: [],
......@@ -48,11 +50,8 @@ class searchHistoryService extends Service {
}
};
//不管有没有登录获取城市相关的热门搜索
let hotList = await ctx.service.house.v2.hotSearch.getHotSearch(condition);
ret.hot_search = {
results: hotList,
count: hotList.count
}
ret.hot_search.results = await ctx.service.house.v2.hotSearch.getHotSearch(condition);
if (!ctx.appUserId || !ctx.userId) {
//如果没有登录就返回
return ret;
......
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