[0] RouteNotFoundException in Route.php line 897

当前访问路由未定义或不匹配

  1. // 检测跨域路由
  2. $result = $this->cross->check($this->request, $url, $completeMatch);
  3. }
  4. if (false !== $result) {
  5. // 路由匹配
  6. return $result;
  7. } elseif ($must) {
  8. // 强制路由不匹配则抛出异常
  9. throw new RouteNotFoundException();
  10. }
  11. // 默认路由解析
  12. return new UrlDispatch($this->request, $this->group, $url, [
  13. 'auto_search' => $this->autoSearchController,
  14. ]);
  15. }
  16. /**

Call Stack

  1. in Route.php line 897
  2. at Route->check('news|detail|133', true) in App.php line 604
  3. at App->routeCheck() in App.php line 402
  4. at App->run() in index.php line 50