From 990f34c24c586cffefb819c1020600b657041bed Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 22 May 2016 11:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index dbcefaf7..5bee29d8 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -697,7 +697,8 @@ class Route $module = APP_MULTI_MODULE ? array_shift($path) : null; if ($autoSearch) { // 自动搜索控制器 - $dir = APP_PATH . ($module ? $module . DS : '') . CONTROLLER_LAYER; + $dir = APP_PATH . ($module ? $module . DS : '') . CONTROLLER_LAYER; + $item = []; foreach ($path as $val) { $item[] = array_shift($path); if (is_file($dir . DS . $val . EXT)) {