From 861570edfe703e74685d50db8ae82646144d1d90 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 7 Jan 2016 19:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=9F=9F=E5=90=8D=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=88=B0=20=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 4cf323c6..fa5365be 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -316,7 +316,10 @@ class Route break; case 'group': // 绑定到路由分组 - $rules = $rules[self::$bind['group']]; + $key = self::$bind['group']; + if (array_key_exists($key, $rules)) { + $rules = [$key => $rules[self::$bind['group']]]; + } } if (isset($return)) { return $return;