diff --git a/System/Crontab/Consumer.php b/System/Crontab/Consumer.php index 166935b4..1cae3d45 100644 --- a/System/Crontab/Consumer.php +++ b/System/Crontab/Consumer.php @@ -8,7 +8,6 @@ use Exception; use Snowflake\Event; use Snowflake\Process\Process; use Snowflake\Snowflake; -use Swoole\Coroutine; /** @@ -34,8 +33,6 @@ class Consumer extends Process $crontab = swoole_unserialize($redis->get($value)); $redis->del($value); - - var_dump($crontab); if (!is_object($crontab)) { continue; } diff --git a/System/Crontab/Crontab.php b/System/Crontab/Crontab.php index 3efa0507..ec2e9279 100644 --- a/System/Crontab/Crontab.php +++ b/System/Crontab/Crontab.php @@ -200,8 +200,8 @@ class Crontab extends BaseObject public function execute(): void { try { - $result = call_user_func($this->handler, $this->params, $this->name); - var_dump($result); +// $result = call_user_func($this->handler, $this->params, $this->name); + var_dump(($this->handler)($this->params, $this->name)); } catch (\Throwable $throwable) { $this->addError($throwable->getMessage()); } finally {