From 1de1f50b1fd40e931987c8e39073d75585b27312 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 3 Aug 2021 02:40:36 +0800 Subject: [PATCH] modify --- HttpServer/Route/Node.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 7143042a..8218f816 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -162,6 +162,9 @@ class Node extends HttpService */ private function aopHandler(?IAspect $reflect): Closure { + if (is_null($reflect)) { + return $this->normalHandler($this->handler); + } $params = $this->_injectParameters; $handler = $this->handler; return static function () use ($reflect, $handler, $params) {