* @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 调用参数 支持字符串和数组
authcode | true |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/hayixuan.com/index.php |
QUERY_STRING | s=/company-news/199.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /company-news/199.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/hayixuan.com |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 35.175.174.36 |
REMOTE_PORT | 43952 |
SERVER_ADDR | 103.108.194.239 |
SERVER_PORT | 80 |
SERVER_NAME | hayixuan.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | hayixuan.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711636519.1597 |
REQUEST_TIME | 1711636519 |
WEB_ROOT | /home/wwwroot/hayixuan.com/ |
APP_DEBUG | false |
TP_ROOT | /home/wwwroot/hayixuan.com/ |
TP_CONFIG | /home/wwwroot/hayixuan.com/config/ |
APP_PATH | /home/wwwroot/hayixuan.com/application/ |
APP_TOKEN_DOMAIN | http://www.juyiseo.cn/ |
xagzrhxs | /home/wwwroot/hayixuan.com/application/base/controller/HomeBaseController.php |