// 检测跨域路由
$result = $this->cross->check($this->request, $url, $completeMatch);
}
if (false !== $result) {
// 路由匹配
return $result;
} elseif ($must) {
// 强制路由不匹配则抛出异常
throw new RouteNotFoundException();
}
// 默认路由解析
return new UrlDispatch($this->request, $this->group, $url, [
'auto_search' => $this->autoSearchController,
]);
}
/**
PHPSESSID | sn13tmf7s7o0c1codquf4b2s6q |
USER | apache |
HOME | /usr/share/httpd |
HTTP_COOKIE | PHPSESSID=sn13tmf7s7o0c1codquf4b2s6q |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.tlwgz.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.tlwgz.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.176.15 |
REMOTE_PORT | 60218 |
REMOTE_ADDR | 50.2.50.34 |
SERVER_SOFTWARE | nginx/1.14.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /var/www/home/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /home |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//home |
PATH_TRANSLATED | /var/www/home/public |
PATH_INFO | |
SCRIPT_FILENAME | /var/www/home/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1704464694.1123 |
REQUEST_TIME | 1704464694 |