From 94e2bb47ae997d1fba93a4f086982879879ceecf Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 8 Jul 2016 19:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index 04830783..21e93690 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -727,11 +727,6 @@ class Route continue; } - if ('__miss__' == $key) { - // 指定MISS路由 - $miss = $item; - continue; - } if (is_array($rule)) { // 分组路由 if (($pos = strpos($key, ':')) || ($pos = strpos($key, '<'))) { @@ -748,6 +743,11 @@ class Route return $result; } } else { + if ('__miss__' == $rule) { + // 指定MISS路由 + $miss = $item; + continue; + } if ($group) { $rule = $group . '/' . ltrim($rule, '/'); }