$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 | 804aed24d454a998ed9a22a1edbd2a8e |
| think_lang | zh-cn |
| USER | apache |
| HOME | /usr/share/httpd |
| HTTP_COOKIE | PHPSESSID=804aed24d454a998ed9a22a1edbd2a8e; 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) |
| PATH_INFO | /javacript: |
| 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 | 49916 |
| 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/javacript: |
| REQUEST_URI | /javacript: |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php/javacript: |
| REQUEST_TIME_FLOAT | 1775464127.1204 |
| REQUEST_TIME | 1775464127 |