Commit e419fdf7 authored by zhuwei's avatar zhuwei

1

parent c7adc67e
......@@ -344,7 +344,7 @@ class OfficeService
}
//轮播图
$result['carousel_image'] = $this->getCarouselImage($result['id']);
$result['carousel_image'] = $this->service_room->getCarouselImage($result['id']);
//房源数
$result['room_num'] = $this->getRoomNum($result['id']);
//交通信息
......@@ -440,19 +440,7 @@ class OfficeService
return $reference_average_price;
}
//轮播图
private function getCarouselImage($id){
$where['img_status'] = 0;
$where['house_id'] = $id;
$where['img_type'] = 2;
$house_img_data = $this->m_office_img->getListAll('id,img_name', $where);
if($house_img_data){
foreach ($house_img_data as $k=>$v) {
$house_img_data[$k]['image_path'] = $this->internet_path.$v['img_name'];
}
}
return $house_img_data?$house_img_data:[];
}
//房源数
private function getRoomNum($id){
......
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