From e576af20716d91ebab6c900f04ec3ed8dfe53dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 8 Jun 2021 11:38:55 +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 31d64a67..22d8ef9d 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -354,12 +354,12 @@ class Node extends HttpService public function annotationInject(string $className, string $action): Node { $annotation = annotation()->getMethods($className, $action); - if (empty($annotation)) { - return $this; - } if ($action == 'xiaqi') { var_export($annotation); } + if (empty($annotation)) { + return $this; + } foreach ($annotation as $attribute) { if ($attribute instanceof Interceptor) { $this->addInterceptor($attribute->interceptor);