From 1477fc084da489b2ad0f5453e9fecb3def9f6961 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 3 May 2021 04:08:55 +0800 Subject: [PATCH] modify --- 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 38f3044b..66c8d0d8 100644 --- a/Annotation/Route/Socket.php +++ b/Annotation/Route/Socket.php @@ -49,9 +49,9 @@ use Snowflake\Snowflake; // TODO: Implement setHandler() method. $router = Snowflake::app()->getRouter(); - $method = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri); + $path = $this->event . '::' . (is_null($this->uri) ? 'event' : $this->uri); - $router->addRoute($method, [$class, $method], 'sw::socket'); + $router->addRoute($path, [$class, $method], 'sw::socket'); return $router; }