$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)
USER | www |
HOME | /home/www |
PATH_TRANSLATED | redirect:/index.php/index/index/p/5.html/index/p/5.html |
PATH_INFO | /index/index/p/5.html |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/index/p/5.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /index/index/p/5.html |
REMOTE_PORT | 38904 |
SCRIPT_FILENAME | /www/wwwroot/www.ouyouhui.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.ouyouhui.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www.ouyouhui.com/public |
REMOTE_ADDR | 54.196.106.106 |
SERVER_PORT | 80 |
SERVER_ADDR | 122.114.159.203 |
SERVER_NAME | www.ouyouhui.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.ouyouhui.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.ouyouhui.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
SCRIPT_URI | http://www.ouyouhui.com/index/index/p/5.html |
SCRIPT_URL | /index/index/p/5.html |
REDIRECT_STATUS | 200 |
REDIRECT_SCRIPT_URI | http://www.ouyouhui.com/index/index/p/5.html |
REDIRECT_SCRIPT_URL | /index/index/p/5.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/index/index/p/5.html |
REQUEST_TIME_FLOAT | 1711710705.5749 |
REQUEST_TIME | 1711710705 |