From a34cf9ed4375d135b70bf3f816922df376089738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 4 May 2018 22:59:39 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=8E=88=E6=9D=83=E6=96=B9=E6=B3=95=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/NodeService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extend/service/NodeService.php b/extend/service/NodeService.php index c2c7219b6..18b085158 100644 --- a/extend/service/NodeService.php +++ b/extend/service/NodeService.php @@ -73,7 +73,7 @@ class NodeService public static function checkAuthNode($node) { list($module, $controller, $action) = explode('/', str_replace(['?', '=', '&'], '/', $node . '///')); - $currentNode = self::parseNodeStr("{$module}/{$controller}/{$action}"); + $currentNode = self::parseNodeStr("{$module}/{$controller}") . strtolower("/{$action}"); if (session('user.username') === 'admin' || stripos($node, 'admin/index') === 0) { return true; } @@ -129,7 +129,7 @@ class NodeService } foreach (get_class_methods($className) as $funcName) { if (strpos($funcName, '_') !== 0 && $funcName !== 'initialize') { - $nodes[] = self::parseNodeStr("{$matches[1]}/{$matches[2]}/{$funcName}"); + $nodes[] = self::parseNodeStr("{$matches[1]}/{$matches[2]}/") . strtolower($funcName); } } }