}
// 设置当前请求的参数
$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 路由信息
PHPSESSID | ket5rkv2qvqf2qs5rqnt7qa5bc |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=ket5rkv2qvqf2qs5rqnt7qa5bc |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.ynzyjk.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | ynzyjk.com |
SERVER_PORT | 80 |
SERVER_ADDR | 103.47.82.200 |
REMOTE_PORT | 55560 |
REMOTE_ADDR | 209.73.159.122 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/ynzyjk.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /page/show/www.jiekequan.com |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/page/show/www.jiekequan.com |
SCRIPT_FILENAME | /www/wwwroot/ynzyjk.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730032869.1827 |
REQUEST_TIME | 1730032869 |
DS | / |
ROOT_PATH | /www/wwwroot/ynzyjk.com/ |
APP_PATH | /www/wwwroot/ynzyjk.com/app/ |
WWW_ROOT | /www/wwwroot/ynzyjk.com/public/ |
WOO_PATH | /www/wwwroot/ynzyjk.com/woo/ |
ADDONS_PATH | /www/wwwroot/ynzyjk.com/addons/ |
APP_CACHE_DIR | /www/wwwroot/ynzyjk.com/data/cache/ |