// 检测跨域路由
$result = $this->cross->check($this->request, $url, $completeMatch);
}
if (false !== $result) {
// 路由匹配
return $result;
} elseif ($must) {
// 强制路由不匹配则抛出异常
throw new RouteNotFoundException();
}
// 默认路由解析
return new UrlDispatch($this->request, $this->group, $url, [
'auto_search' => $this->autoSearchController,
]);
}
/**
USER | www |
HOME | /home/www |
HTTP_HOST | www.tangshisongci.net |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | tangshisongci.net |
SERVER_PORT | 80 |
SERVER_ADDR | 103.39.221.100 |
REMOTE_PORT | 59658 |
REMOTE_ADDR | 44.200.82.195 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/tangshisongci.net/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /category6_4.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/category6_4.html |
SCRIPT_FILENAME | /www/wwwroot/tangshisongci.net/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711712571.1751 |
REQUEST_TIME | 1711712571 |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |
DATA_STATUS_NAME | status |
DATA_NORMAL | 1 |
DATA_DISABLE | 0 |
DATA_DELETE | -1 |
DATA_SUCCESS | 1 |
DATA_ERROR | 0 |
SYS_APP_NAMESPACE | app |
SYS_ADDON_DIR_NAME | addon |
SYS_DRIVER_DIR_NAME | driver |
SYS_COMMON_DIR_NAME | common |
SYS_ADMINISTRATOR_ID | 1 |
SYS_SUPER_ROLE_ID | 1 |
SYS_DS_CONS | \ |
SYS_DB_PREFIX | pip_ |
PUBLIC_PATH | / |
PATH_PUBLIC | /www/wwwroot/tangshisongci.net/public/ |
PATH_UPLOAD | /www/wwwroot/tangshisongci.net/public/uploads/ |
PATH_IMAGE | /www/wwwroot/tangshisongci.net/public/uploads/image/ |
PATH_FILE | /www/wwwroot/tangshisongci.net/public/uploads/file/ |
WEB_ROOT | http://www.tangshisongci.net |
API_CODE_NAME | code |
API_MSG_NAME | msg |