* @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 | s636a81emv2taak06d5srq32q6 | 
| USER | www | 
| HOME | /home/www | 
| HTTP_COOKIE | PHPSESSID=s636a81emv2taak06d5srq32q6 | 
| HTTP_ACCEPT_ENCODING | gzip | 
| HTTP_ACCEPT | */* | 
| HTTP_HOST | www.hebang.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 | www.hebang.cn | 
| SERVER_PORT | 443 | 
| SERVER_ADDR | 172.27.179.140 | 
| REMOTE_PORT | 42006 | 
| REMOTE_ADDR | 107.158.144.110 | 
| 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/hebang.juxingnongmu.cn/public | 
| DOCUMENT_URI | /index.php | 
| REQUEST_URI | /yy/govservice/queryprogress | 
| SCRIPT_NAME | /index.php | 
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET | 
| QUERY_STRING | s=/yy/govservice/queryprogress | 
| SCRIPT_FILENAME | /www/wwwroot/hebang.juxingnongmu.cn/public/index.php | 
| FCGI_ROLE | RESPONDER | 
| PHP_SELF | /index.php | 
| REQUEST_TIME_FLOAT | 1751330245.0548 | 
| REQUEST_TIME | 1751330245 | 
| IF_PUBLIC | true | 
| ROOT_PATH | /www/wwwroot/hebang.juxingnongmu.cn/public/../ | 
| APP_PATH | /www/wwwroot/hebang.juxingnongmu.cn/public/../application/ | 
| ADDON_PATH | /www/wwwroot/hebang.juxingnongmu.cn/public/../addons/ | 
| ROOT_URL | / | 
| TEMPLATE_PATH | /www/wwwroot/hebang.juxingnongmu.cn/public/../public/templates/ |