修复定时任务秒级执行
This commit is contained in:
parent
87ec38d1dd
commit
5584fa66da
@ -111,7 +111,7 @@ class Cron
|
||||
if ($this->second) {
|
||||
$now = date('s', time());
|
||||
|
||||
return ($now % 5) == 0;
|
||||
return ($now % $this->second) == 0;
|
||||
}
|
||||
|
||||
if ($this->expression) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user