Commit a9f8d97e authored by hujun's avatar hujun

look_lock

parent ce4ee167
...@@ -263,6 +263,7 @@ class Shop extends Basic ...@@ -263,6 +263,7 @@ class Shop extends Basic
} }
//锁盘后,盘方、独家方、有权限的可以查看 //锁盘后,盘方、独家方、有权限的可以查看
$result[$key]["look_lock"] = 0;
if (isset($val['is_lock']) && $val['is_lock'] == 1) { if (isset($val['is_lock']) && $val['is_lock'] == 1) {
$vip = new VipService(); $vip = new VipService();
if (!$vip->vip($this->agentId, 'index/lockHouse')) { if (!$vip->vip($this->agentId, 'index/lockHouse')) {
...@@ -270,15 +271,16 @@ class Shop extends Basic ...@@ -270,15 +271,16 @@ class Shop extends Basic
} }
$m_agent = new GHousesToAgents(); $m_agent = new GHousesToAgents();
$agent_data = $m_agent->getAgentsHouseField('a.id', ['a.agents_id' => $this->agentId, 'a.type' => ['in', '2,3']]); $agent_where['a.agents_id'] = $this->agentId;
$agent_where['a.type'] = ['in', '2,3'];
$agent_where['a.houses_id'] = $val['id'];
$agent_data = $m_agent->getAgentsHouseField('a.id', $agent_where);
foreach ($agent_data as $vvv) { foreach ($agent_data as $vvv) {
if ($vvv > 0) { if ($vvv > 0) {
$result[$key]["look_lock"] = 1; $result[$key]["look_lock"] = 1;
} }
} }
} else {
$result[$key]["look_lock"] = 0;
} }
} }
......
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