$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 | 2454 | 
| PHPSESSID | 61a9a3fda05ed079e2bf538d47d5d2a3 | 
| USER | www | 
| HOME | /home/www | 
| HTTP_CONNECTION | keep-alive | 
| HTTP_CACHE_CONTROL | max-age=0 | 
| HTTP_X_FORWARDED_FOR | 10.2.75.11 | 
| HTTP_VIA | 1.1 squid-proxy-5b5d847c96-8sp5c (squid/6.13) | 
| HTTP_HOST | wx.sndxsw.cn | 
| HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate | 
| HTTP_COOKIE | PHPSESSID=61a9a3fda05ed079e2bf538d47d5d2a3 | 
| 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 | 52284 | 
| REMOTE_ADDR | 216.73.216.112 | 
| 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=2454 | 
| SCRIPT_NAME | /index.php | 
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET | 
| QUERY_STRING | s=/index/Index/article.html&id=2454 | 
| SCRIPT_FILENAME | /www/wwwroot/wx.sndxsw.cn/public/index.php | 
| FCGI_ROLE | RESPONDER | 
| PHP_SELF | /index.php | 
| REQUEST_TIME_FLOAT | 1761814054.4441 | 
| REQUEST_TIME | 1761814054 |