* @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 调用参数 支持字符串和数组
USER | www |
HOME | /home/www |
HTTP_HOST | www.yimindeguo.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | yimindeguo.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.58.124 |
REMOTE_PORT | 56838 |
REMOTE_ADDR | 18.206.238.189 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/yimindeguo.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news-info/74.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news-info/74.html |
SCRIPT_FILENAME | /www/wwwroot/yimindeguo.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711698338.5773 |
REQUEST_TIME | 1711698338 |
APP_PATH | /www/wwwroot/yimindeguo.com/app/ |