if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->rule->getConfig('url_param_type')) {
$var += $path;
USER | www-data |
HOME | /var/www |
HTTP_HOST | iwf.zqxdl.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | iwf.zqxdl.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.1.158 |
REMOTE_PORT | 58674 |
REMOTE_ADDR | 54.235.6.60 |
SERVER_SOFTWARE | nginx/1.17.4 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/www/xc/xc_cloud_iwf/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /post/8577 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/post/8577 |
SCRIPT_FILENAME | /data/www/xc/xc_cloud_iwf/public/index.php |
PATH_INFO | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710829123.6465 |
REQUEST_TIME | 1710829123 |
APP_VERSION | 1.0.1.114 |
APP_EDITOR_TEST | true |
APP_DESIGN_LOCK | true |
ENABLE_HTTP_PROXY | false |
HTTP_PROXY_IP | 127.0.0.1 |
HTTP_PROXY_PORT | 8888 |
QINIU_FUNCTIONS_VERSION | 7.3.0 |