From fa326da8cc277a68a976f91752682c531b758423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Dec 2020 10:16:21 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index a910014d..b2250839 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -74,7 +74,7 @@ class Node extends Application } else { $this->handler = $handler; } - return $this->restructure(); + return $this; } @@ -366,7 +366,7 @@ class Node extends Application { $limits = Snowflake::app()->getLimits(); $limits->addLimits($this->path, $limit, $duration, $isBindConsumer); - return $this->restructure(); + return $this; } @@ -438,6 +438,7 @@ class Node extends Application */ public function dispatch(): mixed { + $this->restructure(); if (empty($this->callback)) { return JSON::to(404, $node->_error ?? 'Page not found.'); }