[0] RouteNotFoundException in App.php line 653

当前访问路由未定义

  1. }
  2. }
  3. // 路由检测(根据路由定义返回不同的URL调度)
  4. $result = Route::check($request, $path, $depr, $config['url_domain_deploy']);
  5. $must = !is_null(self::$routeMust) ? self::$routeMust : $config['url_route_must'];
  6. if ($must && false === $result) {
  7. // 路由无效
  8. throw new RouteNotFoundException();
  9. }
  10. }
  11. // 路由无效 解析模块/控制器/操作/参数... 支持控制器自动搜索
  12. if (false === $result) {
  13. $result = Route::parseUrl($path, $depr, $config['controller_auto_search']);
  14. }
  15. return $result;