This commit is contained in:
2021-03-19 18:11:42 +08:00
parent 2d9b6b769a
commit e0a3e00fbb
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class CrontabProcess extends Process
$redis->zAdd('system:crontab', 0, time() + $list['tick'], serialize($list));
}
try {
call_user_func($list['handler']);
call_user_func($list['handler'], $list['params'] ?? null);
} catch (\Throwable $throwable) {
$this->application->addError($throwable->getMessage());
}