From cf1700dabbe54e4bf1fd19c6dca9c0267c980eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:42:46 +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 | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index 3584587e..1104b7fc 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -73,7 +73,6 @@ class Middleware [$controller, $action] = $node->handler; $attributes = Snowflake::app()->getAttributes(); $annotation = $attributes->getMethods(get_class($controller), $action); - var_dump($annotation); if (empty($annotation)) { return; } diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 8dfabad4..6a19dd43 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -475,6 +475,7 @@ class Node extends HttpService // return $this->runWith(...func_get_args()); // } if (empty($this->restructure()->callback)) { + var_dump('404'); return Json::to(404, $this->errorMsg()); } return $this->runWith(...func_get_args());