Commit 2caa781d authored by 李尚科's avatar 李尚科

house tool fix

parent 3ee78c5c
......@@ -176,18 +176,12 @@ class ToolController extends Controller {
let recommend_houses = await ctx.service.house.newHouse.getNewHouseList(filter);//推荐房源
if (recommend_houses.count === 0) {
filter = {
total_price: { min: total_price - 30, max: total_price + 30 },
area_code: { district_code: area_code },
}
filter.area_code = { district_code: area_code }
recommend_houses = await ctx.service.house.newHouse.getNewHouseList(filter);//推荐房源
}
if (recommend_houses.count === 0) {
filter = {
total_price: { min: total_price - 30, max: total_price + 30 },
area_code: { city_code: area_code },
}
filter.area_code = { city_code: area_code };
recommend_houses = await ctx.service.house.newHouse.getNewHouseList(filter);//推荐房源
}
recommend_houses = recommend_houses.results.splice(0, 4);
......
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