Commit d444d93b authored by clone's avatar clone

Merge branch '0723-v2.5.0' of https://gitee.com/zwyjjc/tl_estate into 0723-v2.5.0

parents 8bb6febe e108e1aa
...@@ -1311,19 +1311,15 @@ class GHouses extends BaseModel ...@@ -1311,19 +1311,15 @@ class GHouses extends BaseModel
$agents->addAgents($params['exclusive_ids'], $house_id, 3); $agents->addAgents($params['exclusive_ids'], $house_id, 3);
} }
if ($params['image_file']) { //1列表页封面图,2详情页轮播图,3楼层平面图,4独家合同
$m_img = new GHousesImgs(); /***保存图片 hu jun 2018.1.19 start***/
$image_file = json_decode($params['image_file'], true); $house_img = new GHousesImgs();
if ($params['id'] == '') {
$img_data = []; $house_img->add($params, $house_id);
foreach ($image_file as $k=>$v) { } else {
$img_data[$k]['house_id'] = $result['house_id']; $house_img->edit($params, $house_id);
$img_data[$k]['img_name'] = $v['img_name'];
$img_data[$k]['img_type'] = $v['img_type'];
}
$m_img->addHouseImgAll($img_data);
} }
/***保存图片 hujun 2018.1.19 end***/
if ($result['house_id'] != NULL) { if ($result['house_id'] != NULL) {
$this->commit(); $this->commit();
......
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