Commit 3859a730 authored by Hsinli's avatar Hsinli

Merge branch 'master' of t-git.51gjj.com:fangbin/51business

parents f1ba5976 e593c953
Pipeline #9243 passed with stage
in 20 seconds
...@@ -78,7 +78,7 @@ class RentalHouseService extends Service { ...@@ -78,7 +78,7 @@ class RentalHouseService extends Service {
//楼盘图片信息和房型信息 //楼盘图片信息和房型信息
const house_types_rets = await ctx.realestateModel.RentalHouseType.all({ where: { rental_house_id: rental_house_id, status: 'online', valid: 1 } }); const house_types_rets = await ctx.realestateModel.RentalHouseType.all({ where: { rental_house_id: rental_house_id, status: 'online', valid: 1 } });
const p_house_images = ctx.service.house.v2.houseImage.getAll({ type: 1, connect_id: rental_house_id }, ['id', 'path', 'description']); const p_house_images = ctx.service.house.v2.houseImage.getAll({ type: 0, connect_id: rental_house_id }, ['id', 'path', 'description']);
const p_house_types = this.formatRentHouseTypes(house_types_rets); const p_house_types = this.formatRentHouseTypes(house_types_rets);
const p_collection = await ctx.service.house.v2.collection.getCollection({ type: 2, id: rental_house_id }); const p_collection = await ctx.service.house.v2.collection.getCollection({ type: 2, id: rental_house_id });
const p_ret = await Promise.all([p_house_images, p_house_types, p_collection]).then(result => {//等待所有异步内容获取完成 const p_ret = await Promise.all([p_house_images, p_house_types, p_collection]).then(result => {//等待所有异步内容获取完成
......
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