From 79b60a390a291e3acc9f13030097dc88d9da4378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Mar 2021 15:58:23 +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 --- Rpc/Service.php | 6 ------ System/Crontab.php | 9 +++++---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Rpc/Service.php b/Rpc/Service.php index a9b4d487..483cef62 100644 --- a/Rpc/Service.php +++ b/Rpc/Service.php @@ -57,12 +57,6 @@ class Service extends Component } - public function zookeeper() - { - - } - - /** * @param $service * @return string diff --git a/System/Crontab.php b/System/Crontab.php index 0bcde4f1..ca17f078 100644 --- a/System/Crontab.php +++ b/System/Crontab.php @@ -181,9 +181,10 @@ class Crontab extends BaseObject } - /** - * - */ + /** + * + * @throws Exception + */ public function clearTimer() { $this->warning('crontab timer clear.'); @@ -199,7 +200,7 @@ class Crontab extends BaseObject public function execute(): void { try { - call_user_func($this->handler, $this->params); + call_user_func($this->handler, $this->params, $this->name); } catch (\Throwable $throwable) { $this->addError($throwable->getMessage()); } finally {