From 9b7e6e13965fdf38c2cdef72c7212e7de8fb3a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 8 Jun 2021 11:54:48 +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 | 3 --- HttpServer/Route/Router.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 7bc4c503..8137bb87 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -354,9 +354,6 @@ class Node extends HttpService public function annotationInject(string $className, string $action): Node { $annotation = annotation()->getMethods($className, $action); - if ($action == 'xiaqi') { - var_export($annotation); - } if (empty($annotation)) { return $this; } diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index b6548c86..30608581 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -492,8 +492,8 @@ class Router extends HttpService implements RouterInterface if (!($node instanceof Node)) { return send(self::NOT_FOUND); } + var_dump($node); send(($response = $node->dispatch()), 200); - var_dump($response); if (!$node->hasAfter()) { return null; }