修复定时任务秒级执行

This commit is contained in:
JaguarJack 2020-07-10 08:49:31 +08:00
parent 87ec38d1dd
commit 5584fa66da

View File

@ -111,7 +111,7 @@ class Cron
if ($this->second) { if ($this->second) {
$now = date('s', time()); $now = date('s', time());
return ($now % 5) == 0; return ($now % $this->second) == 0;
} }
if ($this->expression) { if ($this->expression) {