$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) {
| _wtsexp | 1758859544 |
| _wtscpk | b1746ee764 |
| _wtsuid | 89def13f-5dda-4613-867a-f2b31fae378e |
| _wtspurl | /player/index955.html?955-0-0 |
| admin_hkcms_lang | zh-cn |
| HKCMSSESSID | 3b8649250e70e283d51a42abf6e10b92 |
| index_hkcms_lang | zh-cn |
| old_index_hkcms_lang | zh-cn |
| USER | weitongda |
| HOME | /home/wwwroot/weitongda |
| SCRIPT_NAME | /index.php |
| REQUEST_URI | /zh-cn/tumor |
| QUERY_STRING | |
| REQUEST_METHOD | GET |
| SERVER_PROTOCOL | HTTP/1.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REDIRECT_URL | /zh-cn/tumor |
| REMOTE_PORT | 48996 |
| SCRIPT_FILENAME | /home/wwwroot/weitongda/wwwroot/public/index.php |
| SERVER_ADMIN | [no address given] |
| CONTEXT_DOCUMENT_ROOT | /home/wwwroot/weitongda/wwwroot/public |
| CONTEXT_PREFIX | |
| REQUEST_SCHEME | http |
| DOCUMENT_ROOT | /home/wwwroot/weitongda/wwwroot/public |
| REMOTE_ADDR | 107.158.144.114 |
| SERVER_PORT | 80 |
| SERVER_ADDR | 127.0.0.1 |
| SERVER_NAME | www.vitalstar.com.cn |
| SERVER_SOFTWARE | Apache |
| SERVER_SIGNATURE | |
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| HTTP_COOKIE | _wtsexp=1758859544; _wtscpk=b1746ee764; _wtsuid=89def13f-5dda-4613-867a-f2b31fae378e; _wtspurl=/player/index955.html?955-0-0; admin_hkcms_lang=zh-cn; HKCMSSESSID=3b8649250e70e283d51a42abf6e10b92; index_hkcms_lang=zh-cn; old_index_hkcms_lang=zh-cn |
| HTTP_ACCEPT | */* |
| HTTP_USER_AGENT | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4136.7 Safari/537.36 |
| HTTP_X_FORWARDED_PROTO | https |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_SSL_FLAG | SSL |
| HTTP_FROM_HTTPS | on |
| HTTP_CONNECTION | close |
| HTTP_HOST | www.vitalstar.com.cn |
| HTTP_X_REAL_IP | 122.114.57.113 |
| HTTP_X_FORWARDED_FOR | 107.158.144.114 |
| proxy-nokeepalive | 1 |
| REDIRECT_STATUS | 200 |
| REDIRECT_PATH_INFO | zh-cn/tumor |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1759937625.8445 |
| REQUEST_TIME | 1759937625 |