$this->request->setAction($actionName);} catch (ReflectionException $e) {$reflect = new ReflectionMethod($instance, '__call');$vars = [$action, $vars];$this->request->setAction($action);}} else {// 操作不存在throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');}$data = $this->app->invokeReflectMethod($instance, $reflect, $vars);return $this->autoResponse($data);});}protected function parseActions($actions)
| id | 1731 |
| PHPSESSID | 8861733a8996093c2ea9a63687eebd2f |
| USER | www |
| HOME | /home/www |
| HTTP_CONNECTION | keep-alive |
| HTTP_CACHE_CONTROL | max-age=0 |
| HTTP_X_FORWARDED_FOR | 10.2.130.10 |
| HTTP_VIA | 1.1 squid-proxy-5b5d847c96-qtpzz (squid/6.13) |
| HTTP_HOST | wx.sndxsw.cn |
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
| HTTP_COOKIE | PHPSESSID=8861733a8996093c2ea9a63687eebd2f |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT | */* |
| PATH_INFO | |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | wx.sndxsw.cn |
| SERVER_PORT | 80 |
| SERVER_ADDR | 10.0.16.16 |
| REMOTE_PORT | 40718 |
| REMOTE_ADDR | 216.73.216.212 |
| SERVER_SOFTWARE | nginx/1.19.8 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REQUEST_SCHEME | http |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/wx.sndxsw.cn/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /index/Index/article.html?id=1731 |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/index/Index/article.html&id=1731 |
| SCRIPT_FILENAME | /www/wwwroot/wx.sndxsw.cn/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1761288072.8174 |
| REQUEST_TIME | 1761288072 |