From bb051869b1ee4b7378bec75b8c976065fb718b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:23:07 +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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index c11d18d6..cfb31bb8 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -405,10 +405,9 @@ class Node extends HttpService $class = [$class]; } foreach ($class as $closure) { - var_dump($closure); - if (in_array($closure, $this->middleware)) { - continue; - } +// if (in_array($closure, $this->middleware)) { +// continue; +// } $this->middleware[] = $closure; } return $this;