Commit ec152cba authored by clone's avatar clone

bug

parent 0c952f52
...@@ -43,18 +43,17 @@ class SaveLookShopHistoryTask ...@@ -43,18 +43,17 @@ class SaveLookShopHistoryTask
public function saveLookShop() public function saveLookShop()
{ {
if (!$this->redis) { if (!$this->redis) {
return false; return;
} }
$day = date("Y-m-d", time()); $day = date("Y-m-d", time());
if ($this->redis->get("run_save_look" . $day)) { if ($this->redis->get("run_save_look" . $day)) {
return false; return;
} }
$this->redis->set("run_save_look" . $day, 1, 24 * 3600); $this->redis->set("run_save_look" . $day, 1, 24 * 3600);
//todo 1.拿到每个经纪人的看铺记录 2.根据看铺记录统计出已看铺数量,3.根据经纪人id 拿到可看铺总数 //todo 1.拿到每个经纪人的看铺记录 2.根据看铺记录统计出已看铺数量,3.根据经纪人id 拿到可看铺总数
$total = $this->agentsModel->getAgentsCountByTask(); $total = $this->agentsModel->getAgentsCountByTask();
$pageSize = 100; $pageSize = 100;
$pageTotal = ceil($total / $pageSize); $pageTotal = ceil($total / $pageSize);
for ($pageNo = 1; $pageNo <= $pageTotal; $pageNo++) { for ($pageNo = 1; $pageNo <= $pageTotal; $pageNo++) {
......
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