if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z0-9][\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 |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/osensinc.chaofanweb.com/public/index.php |
QUERY_STRING | |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/tag/%e6%b5%b7%e8%b4%ad/ |
DOCUMENT_URI | /index.php/tag/海购/ |
DOCUMENT_ROOT | /www/wwwroot/osensinc.chaofanweb.com/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.20.2 |
REMOTE_ADDR | 183.131.46.30 |
REMOTE_PORT | 31176 |
SERVER_ADDR | 172.16.16.3 |
SERVER_PORT | 80 |
SERVER_NAME | osensinc.chaofanweb.com |
REDIRECT_STATUS | 200 |
PATH_INFO | /tag/%E6%B5%B7%E8%B4%AD/index.php |
HTTP_HOST | www.osensinc.com |
HTTP_VIA | cn6020.l1, ens-cache23.cn6020, l2cn3142.l2, cache10.l2cn3142 |
HTTP_EAGLEEYE_TRACEID | 3daa4d2a17116777077813571e |
HTTP_ALI_SWIFT_LOG_HOST | www.osensinc.com |
HTTP_ALI_SWIFT_STAT_HOST | www.osensinc.com |
HTTP_X_FORWARDED_FOR | 54.163.62.42 |
HTTP_X_CLIENT_SCHEME | https |
HTTP_ALI_CDN_REAL_IP | 54.163.62.42 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://www.osensinc.com/index.php/tag/%e6%b5%b7%e8%b4%ad/ |
PHP_SELF | /index.php/tag/%E6%B5%B7%E8%B4%AD/index.php |
REQUEST_TIME_FLOAT | 1711677707.8977 |
REQUEST_TIME | 1711677707 |