[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|company|4', true) in App.php line 604
  3. at App->routeCheck() in App.php line 402
  4. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.tlwgz.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
<address>Apache/2.4.18 (Ubuntu) Server at www.tlwgz.com Port 80</address>
SERVER_SOFTWARE
Apache/2.4.18 (Ubuntu)
SERVER_NAME
www.tlwgz.com
SERVER_ADDR
219.151.9.234
SERVER_PORT
80
REMOTE_ADDR
142.111.85.154
DOCUMENT_ROOT
/var/www/wwwroot/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/var/www/wwwroot/public
SERVER_ADMIN
webmaster@localhost
SCRIPT_FILENAME
/var/www/wwwroot/public/index.php
REMOTE_PORT
20007
REDIRECT_URL
/news/company/4
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/news/company/4
SCRIPT_NAME
/index.php
PATH_INFO
/news/company/4
PATH_TRANSLATED
redirect:/index.php/news/company/4/company/4
PHP_SELF
/index.php/news/company/4
REQUEST_TIME_FLOAT
1574050162.933
REQUEST_TIME
1574050162
Environment Variablesempty
ThinkPHP Constantsempty