From 71ab008f05bcab99fff816f2a063d63cd7b9f1fd Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 31 Oct 2018 09:54:47 +0800 Subject: [PATCH] Update extend/service/NodeService.php --- extend/service/NodeService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extend/service/NodeService.php b/extend/service/NodeService.php index c21584d47..d208f3b6a 100644 --- a/extend/service/NodeService.php +++ b/extend/service/NodeService.php @@ -124,11 +124,9 @@ class NodeService continue; } $className = env('app_namespace') . str_replace('/', '\\', $matches[0]); - if (!class_exists($className)) { - continue; - } + if (!class_exists($className)) continue; foreach (get_class_methods($className) as $funcName) { - if (strpos($funcName, '_') !== 0 && $funcName !== 'initialize') { + if (strpos($funcName, '_') !== 0 && $funcName !== 'initialize' && $funcName !== 'registerMiddleware') { $nodes[] = self::parseNodeStr("{$matches[1]}/{$matches[2]}") . '/' . strtolower($funcName); } }