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; }