* @param integer|Response $code 状态码 或者 Response对象实例
* @param string $message 错误信息
* @param array $header 参数
*/
function abort($code, $message = null, $header = [])
{
if ($code instanceof Response) {
throw new HttpResponseException($code);
} else {
throw new HttpException($code, $message, null, $header);
}
}
}
if (!function_exists('action')) {
/**
* 调用模块的操作方法 参数格式 [模块/控制器/]操作
* @param string $url 调用地址
* @param string|array $vars 调用参数 支持字符串和数组
PHPSESSID | 7fqpb6hfe05oi1dsr3j60n603f |
hisi_language | zh-cn |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=7fqpb6hfe05oi1dsr3j60n603f; hisi_language=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.cnqxhk.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | cnqxhk.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.1.62 |
REMOTE_PORT | 40270 |
REMOTE_ADDR | 50.2.188.146 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cnqxhk.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /shehuizeren |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/shehuizeren |
SCRIPT_FILENAME | /www/wwwroot/cnqxhk.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1724593686.0196 |
REQUEST_TIME | 1724593686 |
APP_PATH | /www/wwwroot/cnqxhk.com/public/application/ |
HISI_VERSION | 2.0.22 |
ROOT_PATH | /www/wwwroot/cnqxhk.com/ |
IN_SYSTEM | true |
ROOT_DIR | / |
HISI_LANG | zh-cn |