From 71ddeed08bf6cd4d02ccb1419a0c0555f63c8154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 18:51:23 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index a69e6596..1b6782a0 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -89,6 +89,9 @@ class Node extends HttpService $this->annotationInject(get_class($controller), $action); $this->callback = Reduce::reduce($this->createDispatch(), $this->annotation()); } + if ($this->path == 'user/attributes') { + var_dump($this); + } return $this; } @@ -325,9 +328,6 @@ class Node extends HttpService if (empty($annotation)) { return $this; } - if ($this->path == 'user/attributes') { - var_dump($annotation); - } foreach ($annotation as $name => $attribute) { if ($attribute instanceof \Annotation\Route\Interceptor) { $this->addInterceptor($attribute->interceptor);