Commit d2d985e8 authored by hujun's avatar hujun

锁盘

parent d05b6a8a
......@@ -96,7 +96,7 @@ class Shop extends Basic
} else {
$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";
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock";
$conditions["city"] = trim($this->city);
}
......@@ -248,6 +248,23 @@ class Shop extends Basic
$isLook = $this->lookShopService_->isLooked($this->agentId, $val["id"]);
$result[$key]["is_look"] = $isLook;
}
//锁盘后,盘方、独家方、有权限的可以查看
if (isset($val['is_lock']) && $val['is_lock'] == 1) {
$vip = new VipService();
if (!$vip->vip($this->agentId, 'index/lockHouse') ) {
$result[$key]["look_lock"] = 1;
}
$m_agent = new GHousesToAgents();
$agent_data = $m_agent->getAgentsHouseField('a.id', ['a.agents_id'=>$this->agentId, 'a.type'=>['in', '2,3']]);
foreach ($agent_data as $vvv) {
if ($vvv > 0){
$result[$key]["look_lock"] = 1;
}
}
}
}
......
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