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