From e73ccc925f6040a62830af2196536295eef2b065 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 22 Jul 2016 15:23:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B7=AF=E7=94=B1=E5=88=86?= =?UTF-8?q?=E7=BB=84=E7=9A=84=E5=B5=8C=E5=A5=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 92147c8f..00758aae 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -300,7 +300,9 @@ class Route self::setGroup($name); call_user_func_array($routes, []); self::$group = $curentGroup; - + if ($curentGroup) { + $name = $curentGroup . '/' . $name; + } self::$rules[$type][$name]['route'] = ''; self::$rules[$type][$name]['var'] = self::parseVar($name); self::$rules[$type][$name]['option'] = $option;