From 2c62a82a92f809544b1c94b7c7a99a7235b5ae1c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 20 Jul 2016 08:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB=E5=88=86?= =?UTF-8?q?=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 6533b4f3..95c6229a 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -298,7 +298,8 @@ class Route $curentGroup = self::$group; self::setGroup($name); call_user_func_array($routes, []); - self::setGroup($curentGroup); + self::$group = $curentGroup; + self::$rules[$type][$name]['route'] = ''; self::$rules[$type][$name]['var'] = self::parseVar($name); self::$rules[$type][$name]['option'] = $option;