Commit 7cc2e59c authored by hujun's avatar hujun

经纪人详情商铺图片

parent 195d6fc9
......@@ -176,7 +176,7 @@ class Broker extends Basic{
$fields_evaluate = 'house_id,user_id,user_nick,user_phone,user_pic,evaluate_grade,evaluate_content,';
$fields_evaluate .= 'evaluate_sign,a.create_time,record_id,a.source,a.house_id,c.external_address';
$bargain_fields = 'a.id,a.price,a.create_time as singntime,d.external_title as title,d.rent_type,d.shop_sign as shangpu_tags,shop_area_start as room_area';
$bargain_fields = 'a.id,a.price,a.create_time as singntime,d.external_title as title,d.rent_type,d.shop_sign,shop_area_start as room_area,c.house_id';
switch ($params['type']) {
case 0:
......
......@@ -529,8 +529,15 @@ class OBargainModel extends Model
$data[$k]['singntime'] = date('Y-m-d', strtotime($v['singntime']));
}
if (empty($v['shangpu_tags'])) {
if (empty($v['shop_sign'])) {
$data[$k]['shangpu_tags'] = "";
} else {
$data[$k]['shangpu_tags'] = explode(',', $v['shop_sign']);
}
if (isset($v['house_id'])) {
$img_name = $this->db_->table('g_houses_imgs')->where('id',$v['house_id'])->value('img_name');
$data[$k]['img'] = CK_IMG_URL.'images/'.$img_name;
}
}
......
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