* @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 | ragp8ueno68d7p2jtscocq22e1 |
6a992d5529f459a44fee58c733255e86 | { "current_page": 1 } |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=ragp8ueno68d7p2jtscocq22e1 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.ccrq.com.cn |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | 39.107.235.255 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.23.115.118 |
REMOTE_PORT | 34800 |
REMOTE_ADDR | 50.2.50.46 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/web |
DOCUMENT_URI | /index.php |
REQUEST_URI | //copy-2746699.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/copy-2746699.html |
SCRIPT_FILENAME | /www/wwwroot/web/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1726451168.358 |
REQUEST_TIME | 1726451168 |
TPL_PATH_NAME | tpl |
STATIC_PATH_NAME | static |
__PUBLIC__ | /www/wwwroot/web/tpl/public/ |
DS | / |
ADDONS_PATH | ./addons/ |