Commit 301255fb authored by clone's avatar clone

bug

parent 4903813c
......@@ -51,6 +51,12 @@ class ResultsSummaryNewTask
public function totalAgentResults()
{
set_time_limit(0); // 取消脚本运行时间的超时上限
$day = date("Y-m-d", time());
if ($this->redis_ && $this->redis_->get("run_total" . $day)) {
return false;
}
$this->redis_->set("run_total" . $day, 1, 3600);
//todo 按小时统计
//todo 1.分页查询经纪人, 2遍历执行,判断一个经纪人在统计表最后一条统计数据的日期
//TODO 3.日期加一天并判断是否大于等于当前时间大于return 4.执行此日期的统计,5.当次日期小于当前日期,递归日期加一。继续统计
......
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