From 5a41a726115d547b8c7a842a64dd4f2596279e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 17 Mar 2017 14:35:40 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=97=AE=E9=A2=98]=E4=BF=AE=E5=A4=8DNode?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E9=83=A8=E5=88=86=E4=B8=A2=E5=A4=B1=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/model/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/model/Node.php b/application/admin/model/Node.php index 832107d13..56bfc7370 100644 --- a/application/admin/model/Node.php +++ b/application/admin/model/Node.php @@ -62,7 +62,7 @@ class Node { continue; } $_tmp = explode(DS, $vo); - $controllerName = rtrim(array_pop($_tmp), '.php'); + $controllerName = preg_replace('|\.php$|', '', array_pop($_tmp)); array_pop($_tmp); $moduleName = array_pop($_tmp); $className = config('app_namespace') . "\\{$moduleName}\\controller\\{$controllerName}";