mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
修正Route类的一处bug
This commit is contained in:
@@ -130,7 +130,7 @@ class Route
|
|||||||
}
|
}
|
||||||
if (0 === strpos($key, '[')) {
|
if (0 === strpos($key, '[')) {
|
||||||
if (empty($val)) {
|
if (empty($val)) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
$key = substr($key, 1, -1);
|
$key = substr($key, 1, -1);
|
||||||
$result = ['routes' => $val, 'option' => $option, 'pattern' => $pattern];
|
$result = ['routes' => $val, 'option' => $option, 'pattern' => $pattern];
|
||||||
|
|||||||
Reference in New Issue
Block a user