From ba7415cce76d672901846ac1193a37113bed3674 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 30 Mar 2016 17:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUrl=E7=B1=BB=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20=E8=B7=AF=E7=94=B1=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/think/Url.php b/library/think/Url.php index 7c1945e4..12fa847e 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -270,6 +270,12 @@ class Url $alias[$route][] = [$rule, $var]; } } + + // 检测路由映射 + $maps = Route::map(); + foreach ($maps as $rule => $route) { + $alias[$route][] = [$rule, []]; + } !APP_DEBUG && Cache::set('think_route_alias', $alias); return $alias; }