Commit ff713391 authored by 李尚科's avatar 李尚科

house v2 tool fix

parent c6b105ba
......@@ -109,7 +109,12 @@ class ToolController extends Controller {
let ret = [];
if (house_style === 'used_house') {
ret = await ctx.service.house.v2.tool.getUsedHouseMapPoint(area_code, level);
if (parseInt(level) === 1) {
const price_city_ret = await ctx.blockModel.HousePriceCity.one({ where: { id: area_code } });
if (price_city_ret && price_city_ret.id) ret = await ctx.service.house.v2.tool.getUsedHouseMapPoint(area_code, level);
} else {
ret = await ctx.service.house.v2.tool.getUsedHouseMapPoint(area_code, level);
}
} else if (house_style === 'new_house') {
ret = await ctx.service.house.v2.tool.getNewHouseMapPoint(area_code, level);
}
......@@ -155,7 +160,7 @@ class ToolController extends Controller {
ctx.success({ result });
}
//存钱罐 附房源点位
//存钱罐 附房源点位
async getHouseNearbyPoint() {
const { ctx } = this;
......
......@@ -61,7 +61,7 @@ module.exports = app => {
router.post('/v2/tool/house_price_search', 'house.v2.tool.getHousePriceFeatureSearch');//房价指数 搜索结果
router.get('/v2/tool/house_point', 'house.v2.tool.getHousePoint');//点击房源信息跳到地图页 需要的经纬度信息。
router.post('/v2/tool/nearby_house_points', 'house.v2.tool.getHouseNearbyPoint');//点击房源信息跳到地图页 此房源周边信息。
router.get('/v2/tool/oss_signature', 'house.v2.tool.getBusinessSignature');//点击房源信息跳到地图页 此房源周边信息
router.get('/v2/tool/oss_signature', 'house.v2.tool.getBusinessSignature');//上传图片需要的签名参数
//租房列表
......
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