From ae3a742c5cb9c6849c5e1346115df749e1f2a15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 15 Dec 2020 16:55:50 +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 --- Annotation/Route/Socket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Annotation/Route/Socket.php b/Annotation/Route/Socket.php index cda755d8..834d6ced 100644 --- a/Annotation/Route/Socket.php +++ b/Annotation/Route/Socket.php @@ -61,8 +61,8 @@ use Snowflake\Snowflake; $router = Snowflake::app()->getRouter(); // TODO: Implement setHandler() method. - $method = $this->event . '::' . (empty($this->uri) ? 'event' : $this->uri); - var_dump($method); + $method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri); + $node = $router->addRoute($method, $handler, 'sw::socket'); return $this->add($node);