From 8d5a66e16bc1c0dec51eb72c5a49871a7e5e2015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 19 Mar 2021 19:08:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Crontab.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Crontab.php b/System/Crontab.php index 67d00371..fbb7ae77 100644 --- a/System/Crontab.php +++ b/System/Crontab.php @@ -95,16 +95,15 @@ class Crontab extends Component /** - * @param Crontab $crontab * @throws Exception */ - public function dispatch(Crontab $crontab) + public function dispatch() { $redis = Snowflake::app()->getRedis(); $executeTime = $this->tickTime + time(); - $redis->zAdd('system:crontab', (string)$executeTime, serialize($crontab)); + $redis->zAdd('system:crontab', (string)$executeTime, serialize($this)); }