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());