* @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 | /dev/null |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT | */* |
| HTTP_USER_AGENT | Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.7922.137 Mobile Safari/537.36 (compatible; GoogleOther) |
| HTTP_REMOTEIP | 10.224.72.127 |
| HTTP_X_FORWARDED_FOR | 50.2.185.58, 10.224.72.127, 100.123.31.89 |
| HTTP_HOST | www.mgi-tech.com |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | www.mgitech.cn |
| SERVER_PORT | 80 |
| SERVER_ADDR | 10.224.72.93 |
| REMOTE_PORT | |
| REMOTE_ADDR | 50.2.185.58 |
| REQUEST_SCHEME | http |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/web/legacy_mgi-tech_com/public_html/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /News/info/id/502 |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=//News/info/id/502 |
| SERVER_SOFTWARE | nginx |
| GATEWAY_INTERFACE | CGI/1.1 |
| PATH_INFO | |
| SCRIPT_FILENAME | /www/web/legacy_mgi-tech_com/public_html/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1787160071.2918 |
| REQUEST_TIME | 1787160071 |
| IF_PUBLIC | true |
| ROOT_PATH | /www/web/legacy_mgi-tech_com/public_html/public/../ |
| APP_PATH | /www/web/legacy_mgi-tech_com/public_html/public/../application/ |
| DS | / |
| ADDON_PATH | /www/web/legacy_mgi-tech_com/public_html/public/../addons/ |
| ROOT_URL | / |
| TEMPLATE_PATH | /www/web/legacy_mgi-tech_com/public_html/public/../templates/ |
| PINYIN_DEFAULT | 4096 |
| PINYIN_TONE | 2 |
| PINYIN_NO_TONE | 4 |
| PINYIN_ASCII_TONE | 8 |
| PINYIN_NAME | 16 |
| PINYIN_KEEP_NUMBER | 32 |
| PINYIN_KEEP_ENGLISH | 64 |
| PINYIN_UMLAUT_V | 128 |
| PINYIN_KEEP_PUNCTUATION | 256 |