diff --git a/library/think/route.php b/library/think/route.php index 497ab878..88d3cc94 100644 --- a/library/think/route.php +++ b/library/think/route.php @@ -311,7 +311,7 @@ class Route $rule = array_shift($val); } // 单项路由 - $route = $val['route']; + $route = !empty($val['route'])?$val['route']:''; if (0 === strpos($rule, '/') && preg_match($rule, $url, $matches)) { return self::checkRegex($route, $url, $matches); } else {