mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
继续改进Route类的分组功能
This commit is contained in:
@@ -210,7 +210,7 @@ class Route
|
|||||||
$result = ['route' => $val, 'option' => $option, 'pattern' => $pattern];
|
$result = ['route' => $val, 'option' => $option, 'pattern' => $pattern];
|
||||||
}
|
}
|
||||||
if ($group) {
|
if ($group) {
|
||||||
self::$rules[$type][$group]['routes'][$key] = $result['route'];
|
self::$rules[$type][$group]['routes'][$key] = [$result['route'], $result['option'], $result['pattern']];
|
||||||
} else {
|
} else {
|
||||||
self::$rules[$type][$key] = $result;
|
self::$rules[$type][$key] = $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user