修复定时任务秒级执行
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user