This commit is contained in:
as2252258@163.com
2021-05-03 04:08:55 +08:00
parent fd531876a4
commit 1477fc084d
+2 -2
View File
@@ -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;
}