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, '/'); }