$path = $this->rule->parseUrlPath($url);if (empty($path)) {return [null, null];}// 解析控制器$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;$var = [];// 解析额外参数if ($path) {preg_replace_callback('/(\w+)\|([^\|]+)/', function ($match) use (&$var) {
| lang | zh-cn |
| ssid | 3664f589a3fc92ae551d7daa1bf3bb03 |
| LoginCaptcha | 202510275644279716 |
| USER | www |
| HOME | /var/www |
| HTTP_COOKIE | lang=zh-cn; ssid=3664f589a3fc92ae551d7daa1bf3bb03 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT | */* |
| HTTP_HOST | www.zjamp.com |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | www.zjamp.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 10.2.0.89 |
| REMOTE_PORT | 44882 |
| REMOTE_ADDR | 104.253.131.2 |
| SERVER_SOFTWARE | nginx/1.27.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /var/www/zjamp/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /tags-%E7%A6%8F%E5%BB%BA%E9%9C%9E%E6%B5%A6%EF%BC%9A%E5%A5%8F%E5%93%8D%E6%B5%B7%E6%B4%8B%E7%89%A7%E6%AD%8C.html |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=//tags-%E7%A6%8F%E5%BB%BA%E9%9C%9E%E6%B5%A6%EF%BC%9A%E5%A5%8F%E5%93%8D%E6%B5%B7%E6%B4%8B%E7%89%A7%E6%AD%8C.html |
| SCRIPT_FILENAME | /var/www/zjamp/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1761530866.5151 |
| REQUEST_TIME | 1761530866 |