}
// 设置当前请求的参数
$this->request->setRouteVars($var);
// 封装路由
$route = [$module, $controller, $action];
if ($this->hasDefinedRoute($route, $bind)) {
throw new HttpException(404, 'invalid request:' . str_replace('|', $depr, $url));
}
return $route;
}
/**
* 检查URL是否已经定义过路由
* @access protected
* @param string $route 路由信息
USER | www |
HOME | /home/www |
HTTP_REFERER | http://www.xr-screen.com/home/product/index.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.xr-screen.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.xr-screen.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.24.189.149 |
REMOTE_PORT | 42092 |
REMOTE_ADDR | 54.89.70.161 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/xr_screen |
DOCUMENT_URI | /index.php |
REQUEST_URI | /home/product/index.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/home/product/index.html |
SCRIPT_FILENAME | /www/wwwroot/xr_screen/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711634264.7123 |
REQUEST_TIME | 1711634264 |