From fdfebe73f6c60fd908269fc90831f4bfd96118ed Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 3 Jul 2016 09:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Url=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Url.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/think/Url.php b/library/think/Url.php index 0d9bd418..5f802011 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -258,6 +258,10 @@ class Url // 生成路由映射并缓存 private static function getRouteAlias() { + static $item = []; + if (!empty($item)) { + return $item; + } if ($item = Cache::get('think_route_map')) { return $item; }