This commit is contained in:
thinkphp
2016-01-09 21:55:07 +08:00
parent f779f2ca07
commit 80d14a2612

View File

@@ -43,7 +43,7 @@ class Url
// 检测是否存在路由别名 // 检测是否存在路由别名
if ($aliasUrl = Route::getRouteUrl($url, $vars)) { if ($aliasUrl = Route::getRouteUrl($url, $vars)) {
// 存在别名定义则优先 // 存在别名定义则优先
return $aliasUrl; $url = $aliasUrl;
} else { } else {
// 检测路由 // 检测路由
$match = self::checkRoute($url, $vars, $domain); $match = self::checkRoute($url, $vars, $domain);