diff --git a/library/think/Route.php b/library/think/Route.php index 6a48960a..3db38183 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -889,7 +889,7 @@ class Route } else { $str = $key; } - if (is_string($str) && $str && 0 !== strpos($url, $str)) { + if (is_string($str) && $str && 0 !== strpos(str_replace('|', '/', $url), $str)) { continue; }