From 41df099f4c8ebafde52a8700ca65c10e04b11ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 16:22:30 +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 --- HttpServer/Route/Node.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index f9b83e1d..8d42fd84 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -550,19 +550,6 @@ class Node extends HttpService } - /** - * @throws Exception - */ - public function restructure(): static - { - if (empty($this->handler)) { - return $this; - } - /** @var Middleware $made */ - $made = Snowflake::createObject(Middleware::class); - $made->getGenerate($this); - return $this; - } /** @@ -571,7 +558,7 @@ class Node extends HttpService */ public function dispatch(): mixed { - if (empty($this->restructure()->callback)) { + if (empty($this->callback)) { return Json::to(404, $this->errorMsg()); } return $this->runWith(...func_get_args());