Commit 1847a8ca authored by zhuwei's avatar zhuwei

交通信息

parent 7108f786
...@@ -619,10 +619,22 @@ class OfficeRoomService ...@@ -619,10 +619,22 @@ class OfficeRoomService
$result['landlord_info'] = $this->getLandlordInfo($result['id']); $result['landlord_info'] = $this->getLandlordInfo($result['id']);
#房源数 #房源数
$result['room_num'] = $this->getRoomNum($result['id'],$result['id']); $result['room_num'] = $this->getRoomNum($result['id'],$result['id']);
#交通信息
$result['traffic_info'] = $this->getTrafficInfo($result['id']);
return ['status'=>200,'msg'=>'success','data'=>$result]; return ['status'=>200,'msg'=>'success','data'=>$result];
} }
/**
* 交通信息
* @param $id
* @return string
*/
public function getTrafficInfo($id){
$res = '8号线地铁站出站300米';
return $res;
}
/** /**
* 房源数 * 房源数
* @param $building_id * @param $building_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