mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
修正路由分组的一处bug
This commit is contained in:
@@ -233,7 +233,7 @@ class Route
|
|||||||
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [])
|
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [])
|
||||||
{
|
{
|
||||||
$group = self::getGroup('name');
|
$group = self::getGroup('name');
|
||||||
if (!empty($group)) {
|
if (!is_null($group)) {
|
||||||
// 路由分组
|
// 路由分组
|
||||||
$option = array_merge(self::getGroup('option'), $option);
|
$option = array_merge(self::getGroup('option'), $option);
|
||||||
$pattern = array_merge(self::getGroup('pattern'), $pattern);
|
$pattern = array_merge(self::getGroup('pattern'), $pattern);
|
||||||
|
|||||||
Reference in New Issue
Block a user