mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进Route类的parseRule方法 路由地址中的变量替换不自动去除路由变量
This commit is contained in:
@@ -1400,7 +1400,6 @@ class Route
|
|||||||
foreach ($matches as $key => $val) {
|
foreach ($matches as $key => $val) {
|
||||||
if (false !== strpos($route, ':' . $key)) {
|
if (false !== strpos($route, ':' . $key)) {
|
||||||
$route = str_replace(':' . $key, $val, $route);
|
$route = str_replace(':' . $key, $val, $route);
|
||||||
unset($matches[$key]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user