Commit b603c7ba authored by hujun's avatar hujun

对外图片

parent a18e0a90
...@@ -16,6 +16,7 @@ use app\model\GHousesExt; ...@@ -16,6 +16,7 @@ use app\model\GHousesExt;
use app\model\GHousesFollowUp; use app\model\GHousesFollowUp;
use app\model\GHousesImgs; use app\model\GHousesImgs;
use app\model\GHousesToAgents; use app\model\GHousesToAgents;
use app\model\GImageDepot;
use app\model\GLandlordPhone; use app\model\GLandlordPhone;
use app\model\OBargainModel; use app\model\OBargainModel;
use app\model\OReportModel; use app\model\OReportModel;
...@@ -497,7 +498,7 @@ class Shop extends Basic ...@@ -497,7 +498,7 @@ class Shop extends Basic
$field .= ',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth, $field .= ',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth,
b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source
,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.is_vip,a.fit_industry_type'; ,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.is_vip,a.fit_industry_type,a.is_show_image,a.external_image_id';
$result = $this->gHousesModel->getHouseDetailById($field, $conditions); $result = $this->gHousesModel->getHouseDetailById($field, $conditions);
if (count($result) <= 0) { if (count($result) <= 0) {
return $this->response("101", '此楼盘不存在'); return $this->response("101", '此楼盘不存在');
...@@ -640,6 +641,19 @@ class Shop extends Basic ...@@ -640,6 +641,19 @@ class Shop extends Basic
$result['new_sign_rule'] = "付{$result['payment_month']}{$result['deposit_month']},签订{$result['age_limit']}年"; $result['new_sign_rule'] = "付{$result['payment_month']}{$result['deposit_month']},签订{$result['age_limit']}年";
$result['payment_deposit'] = empty($result['payment_month']) ? "":"付{$result['payment_month']}{$result['deposit_month']}"; $result['payment_deposit'] = empty($result['payment_month']) ? "":"付{$result['payment_month']}{$result['deposit_month']}";
$result['age_limit'] = empty($result['age_limit']) ? "":"签订{$result['age_limit']}年"; $result['age_limit'] = empty($result['age_limit']) ? "":"签订{$result['age_limit']}年";
if ($result['is_show_image'] == 1) {
$m_image_depot = new GImageDepot();
$image_id = explode(',', $result['external_image_id']);
if (empty($image_id[0])) {
$result['external_image'] = "";
} else {
$external_image = $m_image_depot->getInfo('img_name', ['id'=>$image_id[0], 'img_status'=>0]);
$result['external_image'] = $external_image['img_name'];
}
unset($result['external_image_id']);
}
return $this->response("200", 'request success', $result); return $this->response("200", 'request success', $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