From cb52e090239380567c89cb4e78dbd9f9f6e3c2d9 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 26 Mar 2021 01:49:21 +0800 Subject: [PATCH] modify --- System/Crontab/Crontab.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/System/Crontab/Crontab.php b/System/Crontab/Crontab.php index 279fc759..f100f576 100644 --- a/System/Crontab/Crontab.php +++ b/System/Crontab/Crontab.php @@ -201,9 +201,13 @@ class Crontab extends BaseObject { - var_dump(($this->handler)()); +// var_dump(($this->handler)()); -// var_dump(call_user_func($this->handler, $this->params, $this->name)); + var_dump(call_user_func(function ($params, $name) { + + echo date('Y-m-d H:i:s'); + + }, $this->params, $this->name)); }