Commit b25b96ff authored by hujun's avatar hujun

edit

parent c95ebdc3
......@@ -91,8 +91,8 @@ class OfficeService
}
//楼盘图片
if (!empty($data['slide_show'])) {
$this->m_office_img->edit($data['slide_show'], $id, 2);
if (!empty($data['building_images'])) {
$this->m_office_img->edit($data['building_images'], $id, 0);
}
$result['status'] = 'successful';
......@@ -128,11 +128,11 @@ class OfficeService
if ($result) {
$img_data = $this->m_office_img->getListAll('id,img_type,img_name', ['building_id'=>$id, 'img_type'=>2]);
$img_data = $this->m_office_img->getListAll('id,img_type,img_name', ['building_id'=>$id, 'img_type'=>0]);
if ($app == 0) {
foreach ($img_data as $k => $v) {
$data['slide_show'][$k]['img_name'] = $v['img_name'];
$data['slide_show'][$k]['id'] = $v['id'];
$data['building_images'][$k]['img_name'] = $v['img_name'];
$data['building_images'][$k]['id'] = $v['id'];
}
} else {
$file_url = [];
......@@ -140,7 +140,7 @@ class OfficeService
$img_url = CK_IMG_URL . 'images/' . $v->img_name;
$file_url['file_name'] = $img_url;
$file_url['save_path'] = $v['img_name'];
$data['slide_show'][] = $file_url;
$data['building_images'][] = $file_url;
}
}
......
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