From 1aca86c389511589c77dc98be1f31ce0c0b14c39 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 3 Oct 2016 08:56:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=90=9C=E7=B4=A2=E6=8E=A7=E5=88=B6=E5=99=A8?= =?UTF-8?q?=E5=AF=B9=E8=AE=BF=E9=97=AE=E6=8E=A7=E5=88=B6=E5=99=A8=E5=B1=82?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index c7c4a731..c18a2d67 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1152,7 +1152,7 @@ class Route $module = Config::get('app_multi_module') ? array_shift($path) : null; if ($autoSearch) { // 自动搜索控制器 - $dir = APP_PATH . ($module ? $module . DS : '') . 'controller'; + $dir = APP_PATH . ($module ? $module . DS : '') . Config::get('url_controller_layer'); $suffix = App::$suffix || Config::get('controller_suffix') ? ucfirst(Config::get('url_controller_layer')) : ''; $item = []; foreach ($path as $val) {