mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进资源路由的匹配规则
This commit is contained in:
@@ -472,7 +472,7 @@ class Route
|
|||||||
$val[1] = str_replace(':id', ':' . $option['var'][$rule], $val[1]);
|
$val[1] = str_replace(':id', ':' . $option['var'][$rule], $val[1]);
|
||||||
}
|
}
|
||||||
$item = ltrim($rule . $val[1], '/');
|
$item = ltrim($rule . $val[1], '/');
|
||||||
self::rule($item ? $item . '$' : '', $route . '/' . $val[2], $val[0], $option, $pattern);
|
self::rule($item . '$', $route . '/' . $val[2], $val[0], $option, $pattern);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user