Commit 879f66b0 authored by Hsinli's avatar Hsinli

addd

parent 9cd7e8f2
Pipeline #8733 passed with stage
in 6 seconds
...@@ -42,7 +42,7 @@ class searchHistoryService extends Service { ...@@ -42,7 +42,7 @@ class searchHistoryService extends Service {
//如果没有登录就返回空 //如果没有登录就返回空
return ret; return ret;
} }
let endDate = moment().subtract(180, 'days').format('YYYY-MM-DD HH:mm:ss'); let endDate = moment().subtract(6, 'months').format('YYYY-MM-DD HH:mm:ss');
let filter = { let filter = {
page: 1, page: 1,
limit: 50, limit: 50,
...@@ -59,8 +59,8 @@ class searchHistoryService extends Service { ...@@ -59,8 +59,8 @@ class searchHistoryService extends Service {
let searchHistoryList = await ctx.realestateModel.SearchHistory.all(filter); let searchHistoryList = await ctx.realestateModel.SearchHistory.all(filter);
if (searchHistoryList.length > 0) { if (searchHistoryList.length > 0) {
for (let i in searchHistoryList) { for (let i in searchHistoryList) {
if (list.indexOf(searchHistoryList[i].keyWord) === -1) { if (list.indexOf(searchHistoryList[i].key_word) === -1) {
list.push(searchHistoryList[i].keyWord); list.push(searchHistoryList[i].key_word);
} }
} }
} }
......
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