Commit 7e376a1e authored by hujun's avatar hujun

shop_type

parent 07a2ca98
...@@ -487,24 +487,6 @@ class GHouses extends BaseModel ...@@ -487,24 +487,6 @@ class GHouses extends BaseModel
$house_img->edit($params, $house_id); $house_img->edit($params, $house_id);
} }
/***保存图片 hujun 2018.1.19 end***/ /***保存图片 hujun 2018.1.19 end***/
$agents = new GHousesToAgents();
//权限人
if (isset($params['agent_data'])) {
// $agents->addAgents($params['agent_data'], $house_id, 1, $agent_id);
}
//盘方
if (isset($params['agent_dish'])) {
// $agents->addAgents($params['agent_dish'], $house_id, 2, $agent_id);
}
//独家方
if (isset($params['exclusive_ids'])) {
// $agents->addAgents($params['exclusive_ids'], $house_id, 3, $agent_id);
}
if ($house_id != NULL) { if ($house_id != NULL) {
$this->commit(); $this->commit();
} else { } else {
...@@ -617,6 +599,10 @@ class GHouses extends BaseModel ...@@ -617,6 +599,10 @@ class GHouses extends BaseModel
} }
} }
if ($data['shop_type'] == 1 && empty($data['shop_area_end'])) {
$save_data['shop_area_end'] = $data['shop_area_start'];
}
//商铺标签 //商铺标签
if (isset($data['shop_sign'])) { if (isset($data['shop_sign'])) {
$save_data['shop_sign'] = $data['shop_sign']; $save_data['shop_sign'] = $data['shop_sign'];
......
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