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