From 70e534f2fb1f0400555a180a339b58e71575ea5a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 22 Oct 2016 21:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB?= 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 c07bf5e5..24549d1a 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1206,7 +1206,7 @@ class Route // 检查地址是否被定义过路由 $name = strtolower($module . '/' . Loader::parseName($controller, 1) . '/' . $action); $name2 = ''; - if (isset(self::$bind['module']) && $module == self::$bind['module']) { + if (empty($module) || isset(self::$bind['module']) && $module == self::$bind['module']) { $name2 = strtolower(Loader::parseName($controller, 1) . '/' . $action); }