Commit 86e31aa7 authored by clone's avatar clone

bug

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