$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) {
| PHPSESSID | 31bd168ad41bc9ead772a9a0eff0959a |
| think_lang | zh-cn |
| _last_url | /Inewsm0/20260713_241736 |
| cms_last_url | /sws/document/2139.html |
| index_last_url | /index.php/sws/document/3001.html |
| USER | apache |
| HOME | /usr/share/httpd |
| HTTP_COOKIE | PHPSESSID=31bd168ad41bc9ead772a9a0eff0959a; think_lang=zh-cn |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT | */* |
| HTTP_HOST | www.chinasws.com |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| SCRIPT_FILENAME | /data/www/sws/chinasws/public/index.php |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | www.chinasws.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 192.168.0.159 |
| REMOTE_PORT | 50112 |
| REMOTE_ADDR | 104.140.79.58 |
| SERVER_SOFTWARE | nginx/1.20.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /data/www/sws/chinasws/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /javacript: |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/javacript:& |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1783951503.3058 |
| REQUEST_TIME | 1783951503 |