This commit is contained in:
2021-07-12 18:56:16 +08:00
parent 69e41f4597
commit 522fb3201a
+2 -1
View File
@@ -141,12 +141,13 @@ class Node extends HttpService
/** /**
* @throws ReflectionException * @throws ReflectionException
* @throws NotFindClassException * @throws NotFindClassException
* @throws Exception
*/ */
private function setAop() private function setAop()
{ {
/** @var Aop $aop */ /** @var Aop $aop */
$aop = Snowflake::app()->get('aop'); $aop = Snowflake::app()->get('aop');
if (!$aop->hasAop($this->handler)) { if (!is_array($this->handler) || !$aop->hasAop($this->handler)) {
return; return;
} }
$reflect = $aop->getAop($this->handler); $reflect = $aop->getAop($this->handler);