Commit 34f7a909 authored by hujun's avatar hujun

是否独家

parent 086295c3
...@@ -1012,12 +1012,17 @@ class Shop extends Basic ...@@ -1012,12 +1012,17 @@ class Shop extends Basic
public function getExclusive() public function getExclusive()
{ {
if ($this->params['houses_id']) { if ($this->params['houses_id']) {
$res = $this->gHousesModel->getExclusive($this->params['houses_id']); if ($this->params['is_exclusive_type'] == 1) {
// dump($res); $res = $this->gHousesModel->getExclusive($this->params['houses_id']);
foreach ($res['exclusive_img'] as $key => $val) { // dump($res);
$res['exclusive_img'][$key]['file_name'] = CURRENT_URL.'resource/lib/Attachments/images/'.$val['img_name']; foreach ($res['exclusive_img'] as $key => $val) {
$res['exclusive_img'][$key]['save_path'] = $val['img_name']; $res['exclusive_img'][$key]['file_name'] = CURRENT_URL.'resource/lib/Attachments/images/'.$val['img_name'];
$res['exclusive_img'][$key]['save_path'] = $val['img_name'];
}
} else {
$res = $this->gHousesModel->editData(['is_exclusive_type'=>0], $this->params['houses_id']);
} }
} else { } else {
return $this->response("101", "houses_id is null"); return $this->response("101", "houses_id is null");
} }
......
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