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