diff --git a/library/think/Route.php b/library/think/Route.php index 1912f470..081cce87 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -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, '|')) {