From 6b8e9419b1c425e07a7c0d71e1e05c11c9775057 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 6 Sep 2016 11:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/Url.php b/library/think/Url.php index ea690e76..4e145702 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -12,6 +12,7 @@ namespace think; use think\Config; +use think\Loader; use think\Request; use think\Route; @@ -157,7 +158,7 @@ class Url $module = $module ? $module . '/' : ''; } - $controller = $request->controller(); + $controller = Loader::parseName($request->controller()); if ('' == $url) { // 空字符串输出当前的 模块/控制器/操作 $url = $module . $controller . '/' . $request->action();