mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
修正Url类的getRouteUrl方法
This commit is contained in:
@@ -241,8 +241,11 @@ class Url
|
||||
}
|
||||
$match = true;
|
||||
}
|
||||
if (empty($pattern) && empty($param)) {
|
||||
if (empty($pattern)) {
|
||||
// 没有任何变量
|
||||
if ($param) {
|
||||
$vars = array_diff_key($array, $param);
|
||||
}
|
||||
return $url;
|
||||
} elseif ($match && (empty($param) || array_intersect_assoc($param, $array) == $param)) {
|
||||
// 存在变量定义
|
||||
|
||||
Reference in New Issue
Block a user