diff --git a/library/think/App.php b/library/think/App.php index e41bd9f3..0b7ff00a 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -466,7 +466,7 @@ class App */ public static function routeCheck($request, array $config) { - $path = $request->path(); + $path = rtrim($request->path(), '/'); $depr = $config['pathinfo_depr']; $result = false; // 路由检测