mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正一处错误
This commit is contained in:
@@ -1207,7 +1207,7 @@ class Route
|
|||||||
// 替换路由地址中的变量
|
// 替换路由地址中的变量
|
||||||
if (is_string($route) && !empty($matches)) {
|
if (is_string($route) && !empty($matches)) {
|
||||||
foreach ($matches as $key => $val) {
|
foreach ($matches as $key => $val) {
|
||||||
if (false !== strpos($url, ':' . $key)) {
|
if (false !== strpos($route, ':' . $key)) {
|
||||||
$route = str_replace(':' . $key, $val, $route);
|
$route = str_replace(':' . $key, $val, $route);
|
||||||
unset($matches[$key]);
|
unset($matches[$key]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user