Commit 16924bd2 authored by zhuwei's avatar zhuwei

1

parent cc961961
...@@ -1121,11 +1121,17 @@ class OfficeRoomService ...@@ -1121,11 +1121,17 @@ class OfficeRoomService
} }
foreach ($res as $k=>$v) { foreach ($res as $k=>$v) {
$res[$k]['price_total'] = $v['price_total'] * 0.01; $tmp['id'] = $v['id'];
$res[$k]['price'] = $v['price'] * 0.01; $tmp['price'] = $this->MinField($v['id'], 'price');
// $res[$k]['cover_image'] = $this->getCoverImage($v['id']); $tmp['price'] = empty($tmp['price']) ? 0:$tmp['price'];
$tmp['price_total'] = $this->MinField($v['id'], 'price_total');
$tmp['price_total'] = empty($tmp['price_total']) ? 0:$tmp['price_total'];
$tmp['shop_sign'] = $this->getBuildingSign($v['id']);
$area = $this->MinField($v['id'], 'area');
$tmp['title'] = $v['disc'].' '.$v['business_name']. ' '.$v['title']. ' '.$area.'㎡';
$result_data[] = $tmp;
} }
return ['status'=>200,'msg'=>'success','data'=>$res]; return ['status'=>200,'msg'=>'success','data'=>$result_data];
} }
/** /**
......
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