Commit 86e31aa7 authored by clone's avatar clone

bug

parent 70cbba42
...@@ -56,13 +56,13 @@ class LookShopService ...@@ -56,13 +56,13 @@ class LookShopService
if (!$this->redis) { if (!$this->redis) {
return []; return [];
} }
//todo 过滤掉店长以上的经纪人 //todo 过滤掉店长以上的经纪人 0824所有的都看铺限制
$agentInfo = $this->agentsModel->getAgentById("id,level", [ "agent_id" => $agent_id ]); /* $agentInfo = $this->agentsModel->getAgentById("id,level", [ "agent_id" => $agent_id ]);
Log::record('info ----countLookShopNum-------' . json_encode($agentInfo), "info"); Log::record('info ----countLookShopNum-------' . json_encode($agentInfo), "info");
if ($agentInfo && $agentInfo[0]["level"] > 10) { if ($agentInfo && $agentInfo[0]["level"] > 10) {
Log::record('info ----countLookShopNum------123-', "info"); Log::record('info ----countLookShopNum------123-', "info");
return []; return [];
} }*/
//过滤掉盘方为自己的 //过滤掉盘方为自己的
$params["houses_id"] = $house_id; $params["houses_id"] = $house_id;
$params["agents_id"] = $agent_id; $params["agents_id"] = $agent_id;
...@@ -183,6 +183,9 @@ class LookShopService ...@@ -183,6 +183,9 @@ class LookShopService
return false; return false;
} }
$agentUpNum = $this->redis->hGet(self::LOOK_UP_NUM . $this->nowTime, $agent_id); $agentUpNum = $this->redis->hGet(self::LOOK_UP_NUM . $this->nowTime, $agent_id);
if($agentUpNum >= 1){
return false;
}
$upLookNum = (int)$agentUpNum + 1; $upLookNum = (int)$agentUpNum + 1;
$this->redis->hSet(self::LOOK_UP_NUM . $this->nowTime, $agent_id, $upLookNum); $this->redis->hSet(self::LOOK_UP_NUM . $this->nowTime, $agent_id, $upLookNum);
return true; return true;
......
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