From 522fb3201a3458a16a62cba0a669446e533922b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 12 Jul 2021 18:56:16 +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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 41d485db..5ca2c512 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -141,12 +141,13 @@ class Node extends HttpService /** * @throws ReflectionException * @throws NotFindClassException + * @throws Exception */ private function setAop() { /** @var Aop $aop */ $aop = Snowflake::app()->get('aop'); - if (!$aop->hasAop($this->handler)) { + if (!is_array($this->handler) || !$aop->hasAop($this->handler)) { return; } $reflect = $aop->getAop($this->handler);