Commit 72b4651c authored by hujun's avatar hujun

is_vip

parent 0a1473b8
...@@ -101,7 +101,7 @@ class Shop extends Basic ...@@ -101,7 +101,7 @@ class Shop extends Basic
// $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type // $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
$field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock ,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,is_exclusive_type,vip"; ,is_exclusive_type,is_vip";
$conditions["city"] = trim($this->city); $conditions["city"] = trim($this->city);
} }
...@@ -417,7 +417,7 @@ class Shop extends Basic ...@@ -417,7 +417,7 @@ class Shop extends Basic
$field .= ',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth, $field .= ',b.age_limit,b.payment_month,b.deposit_month,b.external_slotting_fee,c.agents_id, b.area_width,b.depth,
b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source b.electric_quantity,b.voltage,b.exhaust_fume,b.running_water,b.downriver,b.business_scope,b.decoration,b.source
,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.vip'; ,b.rim_mating,b.section,b.crowd,b.other,a.is_lock,b.project_name,a.is_vip';
$result = $this->gHousesModel->getHouseDetailById($field, $conditions); $result = $this->gHousesModel->getHouseDetailById($field, $conditions);
if (count($result) <= 0) { if (count($result) <= 0) {
return $this->response("101", '此楼盘不存在'); return $this->response("101", '此楼盘不存在');
......
...@@ -794,14 +794,14 @@ class Houses extends Basic ...@@ -794,14 +794,14 @@ class Houses extends Basic
try { try {
$house = new GHouses(); $house = new GHouses();
$house_data = $house->getHouseDetail('id,vip', ['id'=>$this->params['id']]); $house_data = $house->getHouseDetail('id,is_vip', ['id'=>$this->params['id']]);
if (empty($house_data['id'])) { if (empty($house_data['id'])) {
$code = 101; $code = 101;
$msg = '没有该商铺'; $msg = '没有该商铺';
} else { } else {
if ($house_data['vip'] != $this->params['vip']) { if ($house_data['is_vip'] != $this->params['vip']) {
$house->editData(['vip'=> $this->params['vip']], $this->params['id']); $house->editData(['is_vip'=> $this->params['vip']], $this->params['id']);
} }
} }
} catch (\Exception $e) { } catch (\Exception $e) {
......
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