改进Route类的parseRule方法 路由地址中的变量替换不自动去除路由变量

This commit is contained in:
thinkphp
2016-10-31 16:25:30 +08:00
parent f11c53db7c
commit e8b05a7642

View File

@@ -1400,7 +1400,6 @@ class Route
foreach ($matches as $key => $val) {
if (false !== strpos($route, ':' . $key)) {
$route = str_replace(':' . $key, $val, $route);
unset($matches[$key]);
}
}
}