}
// 设置当前请求的参数
$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 | gbu2gajsimfiokegv1av8bts9b |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=gbu2gajsimfiokegv1av8bts9b |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.yndianbai.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | yndianbai.com |
SERVER_PORT | 80 |
SERVER_ADDR | 103.47.82.200 |
REMOTE_PORT | 53930 |
REMOTE_ADDR | 50.2.188.146 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/yndianbai.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //article/show/news.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/article/show/news.html |
SCRIPT_FILENAME | /www/wwwroot/yndianbai.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1734801548.0856 |
REQUEST_TIME | 1734801548 |
DS | / |
ROOT_PATH | /www/wwwroot/yndianbai.com/ |
APP_PATH | /www/wwwroot/yndianbai.com/app/ |
WWW_ROOT | /www/wwwroot/yndianbai.com/public/ |
WOO_PATH | /www/wwwroot/yndianbai.com/woo/ |
ADDONS_PATH | /www/wwwroot/yndianbai.com/addons/ |
APP_CACHE_DIR | /www/wwwroot/yndianbai.com/data/cache/ |