Commit bf8cab95 authored by 蔡闯's avatar 蔡闯

社区基本信息接口修改

parent aed9fa62
...@@ -113,7 +113,7 @@ class Vacancy extends Base ...@@ -113,7 +113,7 @@ class Vacancy extends Base
$data['parking_fee'] = Request::param('parking_fee'); $data['parking_fee'] = Request::param('parking_fee');
$data['parent_id'] = Request::param('parent_id'); $data['parent_id'] = Request::param('parent_id');
$add['type'] = $add['status'] = 1; $add['type'] = $add['status'] = 0;
$park_code = Request::param('park_code'); $park_code = Request::param('park_code');
......
...@@ -90,7 +90,7 @@ class Village extends Base ...@@ -90,7 +90,7 @@ class Village extends Base
public function villageInfo() { public function villageInfo() {
$where['village_id'] = $this->village_id; $where['village_id'] = $this->village_id;
$data =DB::name('house_village')->where($where) $data =DB::name('house_village')->where($where)
->field('village_id,property_price,water_price,electric_price,gas_price,park_price,village_logo,village_name,village_address,province_id,province_name,city_id,city_name,area_id,area_name')->find(); ->field('village_id,property_price,water_price,electric_price,gas_price,parking_price,village_logo,village_name,village_address,province_id,province_name,city_id,city_name,area_id,area_name')->find();
return $this->returnJson($data,'success'); return $this->returnJson($data,'success');
} }
......
...@@ -171,6 +171,7 @@ class Admin extends Base ...@@ -171,6 +171,7 @@ class Admin extends Base
$urlsArr = explode(",",$data['url_ids']); $urlsArr = explode(",",$data['url_ids']);
if($data['type'] !=1 ) { if($data['type'] !=1 ) {
foreach($allNav as $k => $v) { foreach($allNav as $k => $v) {
if(!in_array($v['property_nav_id'],$urlsArr)){ if(!in_array($v['property_nav_id'],$urlsArr)){
unset($allNav[$k]); unset($allNav[$k]);
......
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