修正路由分组的参数覆盖问题

This commit is contained in:
thinkphp
2016-06-16 17:21:30 +08:00
parent d29b17b28b
commit 46c500db8f

View File

@@ -211,7 +211,7 @@ class Route
public static function rule($rule, $route = '', $type = '*', $option = [], $pattern = [], $group = '')
{
$group = $group ?: self::$group;
$option = $option ?: self::$option;
$option = $option ? array_merge(self::$option, $option) : self::$option;
$type = strtoupper($type);
if (strpos($type, '|')) {