$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)
lang | zh-cn |
ssid | de362b2cba43772aff24be1593473584 |
USER | www |
HOME | /home/www |
HTTP_COOKIE | lang=zh-cn; ssid=de362b2cba43772aff24be1593473584 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.haizhibao.net |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH_INFO | //contact/message/index.php |
REDIRECT_STATUS | 200 |
SERVER_NAME | haizhibao.net |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.31.133 |
REMOTE_PORT | 49050 |
REMOTE_ADDR | 170.130.202.82 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/new_chengshan/haizhibao/public |
DOCUMENT_URI | /index.php//contact/message/ |
REQUEST_URI | /contact/message/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /www/wwwroot/new_chengshan/haizhibao/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php//contact/message/index.php |
REQUEST_TIME_FLOAT | 1685583219.9118 |
REQUEST_TIME | 1685583219 |