mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
修正路由分组的参数覆盖问题
This commit is contained in:
@@ -211,7 +211,7 @@ class Route
|
|||||||
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [], $group = '')
|
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [], $group = '')
|
||||||
{
|
{
|
||||||
$group = $group ?: self::$group;
|
$group = $group ?: self::$group;
|
||||||
$option = $option ?: self::$option;
|
$option = $option ? array_merge(self::$option, $option) : self::$option;
|
||||||
|
|
||||||
$type = strtoupper($type);
|
$type = strtoupper($type);
|
||||||
if (strpos($type, '|')) {
|
if (strpos($type, '|')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user