From 8bf01b43ed66e1af9d1c5299462c46b02731a10f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 22 Aug 2016 17:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=85=A8=E5=B1=80=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E5=8C=B9=E9=85=8D=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/think/Route.php b/library/think/Route.php index 837fdef0..19282e8a 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -292,7 +292,12 @@ class Route $option['complete_match'] = true; $rule = substr($rule, 0, -1); } + } elseif (empty($option['complete_match']) && '$' == substr($rule, -1, 1)) { + // 是否完整匹配 + $option['complete_match'] = true; + $rule = substr($rule, 0, -1); } + if ('/' != $rule) { $rule = trim($rule, '/'); }