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 {