mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正Route类的分组参数
This commit is contained in:
@@ -225,7 +225,7 @@ class Route
|
||||
$key = array_shift($val);
|
||||
}
|
||||
if (is_array($val)) {
|
||||
$result = ['route' => $val[0], 'option' => $val[1], 'pattern' => isset($val[2]) ? $val[2] : []];
|
||||
$result = ['route' => $val[0], 'option' => array_merge($option, $val[1]), 'pattern' => isset($val[2]) ? $val[2] : []];
|
||||
} else {
|
||||
$result = ['route' => $val, 'option' => $option, 'pattern' => $pattern];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user