* @param integer|Response $code 状态码 或者 Response对象实例
* @param string $message 错误信息
* @param array $header 参数
*/
function abort($code, string $message = '', array $header = [])
{
if ($code instanceof Response) {
throw new HttpResponseException($code);
} else {
throw new HttpException($code, $message, null, $header);
}
}
}
if (!function_exists('app')) {
/**
* 快速获取容器中的实例 支持依赖注入
* @param string $name 类名或标识 默认获取当前应用实例
* @param array $args 参数
ADMIN_ID | 1e4f5569e3604b5d355d71dc288c70ed0f306b12 |
PHPSESSID | 1548789330f1016df32cd202ec694e97 |
n17 | 1 |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ADMIN_ID=1e4f5569e3604b5d355d71dc288c70ed0f306b12; PHPSESSID=1548789330f1016df32cd202ec694e97 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.scaura.cn |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | scaura.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 119.147.152.65 |
REMOTE_PORT | 47308 |
REMOTE_ADDR | 23.231.94.42 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/scauracn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //cases/sscpal/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/cases/sscpal/ |
SCRIPT_FILENAME | /www/wwwroot/scauracn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1714139493.5134 |
REQUEST_TIME | 1714139493 |