mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
修正判断
This commit is contained in:
@@ -560,7 +560,7 @@ class Route
|
|||||||
}
|
}
|
||||||
// 替换路由地址中的变量
|
// 替换路由地址中的变量
|
||||||
foreach ($matches as $key => $val) {
|
foreach ($matches as $key => $val) {
|
||||||
if (strpos($url, ':' . $key)) {
|
if (false !== strpos($url, ':' . $key)) {
|
||||||
$url = str_replace(':' . $key, $val, $url);
|
$url = str_replace(':' . $key, $val, $url);
|
||||||
unset($matches[$key]);
|
unset($matches[$key]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user