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