From 78fe41a0375e583b41506d220b42da3deb7dad0f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 27 Jul 2016 11:38:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index 7fbe9d12..a3934496 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -296,12 +296,13 @@ class Route if (!empty($name)) { // 分组 if ($routes instanceof \Closure) { - $curentGroup = self::$group; + $curentGroup = self::$group; + $currentOption = self::$option; self::setGroup($name); self::setOption($option); call_user_func_array($routes, []); self::$group = $curentGroup; - self::setOption([]); + self::setOption($currentOption); if ($curentGroup) { $name = $curentGroup . '/' . $name; }