mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正一处路由的Notice
This commit is contained in:
@@ -311,7 +311,7 @@ class Route
|
|||||||
$rule = array_shift($val);
|
$rule = array_shift($val);
|
||||||
}
|
}
|
||||||
// 单项路由
|
// 单项路由
|
||||||
$route = $val['route'];
|
$route = !empty($val['route'])?$val['route']:'';
|
||||||
if (0 === strpos($rule, '/') && preg_match($rule, $url, $matches)) {
|
if (0 === strpos($rule, '/') && preg_match($rule, $url, $matches)) {
|
||||||
return self::checkRegex($route, $url, $matches);
|
return self::checkRegex($route, $url, $matches);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user