From 17d146d0d9492203d6dfc91d74b53eb45882fc56 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 1 Nov 2016 11:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B7=AF=E7=94=B1=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=88=B0=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4=E5=90=8E?= =?UTF-8?q?=20=E7=B1=BB=E7=9A=84=E8=87=AA=E5=8A=A8=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index fb9eeff2..8e0a6cca 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1064,12 +1064,12 @@ class Route { $url = str_replace($depr, '|', $url); $array = explode('|', $url, 3); - $class = Loader::parseName(!empty($array[0]) ? $array[0] : Config::get('default_controller'), 1); + $class = !empty($array[0]) ? $array[0] : Config::get('default_controller'); $method = !empty($array[1]) ? $array[1] : Config::get('default_action'); if (!empty($array[2])) { self::parseUrlParams($array[2]); } - return ['type' => 'method', 'method' => [$namespace . '\\' . $class, $method]]; + return ['type' => 'method', 'method' => [$namespace . '\\' . Loader::parseName($class, 1), $method]]; } /**