From 9d5007ad91bcbd65d05655ac588b0c3cfe9969f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:29:05 +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/Middleware.php | 1 - HttpServer/Route/Node.php | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 3710db49..6eab96c2 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -85,7 +85,6 @@ class Middleware $node->addAfter($attribute->after); } if ($attribute instanceof RMiddleware) { - var_dump($attribute->middleware); $node->addMiddleware($attribute->middleware); } if ($attribute instanceof Limits) { diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index f2a32d64..d27b3902 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -469,9 +469,9 @@ class Node extends HttpService */ public function dispatch(): mixed { - if (!empty($this->callback)) { - return $this->runWith(...func_get_args()); - } +// if (!empty($this->callback)) { +// return $this->runWith(...func_get_args()); +// } if (empty($this->restructure()->callback)) { return Json::to(404, $this->errorMsg()); }