* @param string $msg 异常消息
* @param integer $code 异常代码 默认为0
* @param string $exception 异常类
*
* @throws Exception
*/
function exception($msg, $code = 0, $exception = '')
{
$e = $exception ?: '\think\Exception';
throw new $e($msg, $code);
}
}
if (!function_exists('halt')) {
/**
* 调试变量并且中断输出
* @param mixed $var 调试变量或者信息
*/
function halt($var)
USER | tuomi123 |
HOME | /home/wwwroot/tuomi123 |
FCGI_ROLE | RESPONDER |
REDIRECT_STATUS | 200 |
proxy-nokeepalive | 1 |
HTTP_X_REAL_IP | 54.87.17.177 |
HTTP_HOST | tomi-em.com |
HTTP_CONNECTION | close |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SERVER_NAME | tomi-em.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 54.87.17.177 |
DOCUMENT_ROOT | /home/wwwroot/tuomi123/wwwroot |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/tuomi123/wwwroot |
SERVER_ADMIN | [no address given] |
SCRIPT_FILENAME | /home/wwwroot/tuomi123/wwwroot/en/index.php |
REMOTE_PORT | 44592 |
REDIRECT_URL | /en/index/Lists/show/catid/10/id/210.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /en/index/Lists/show/catid/10/id/210.html |
SCRIPT_NAME | /en/index.php |
PATH_INFO | /index/Lists/show/catid/10/id/210.html |
PATH_TRANSLATED | redirect:/index.php/index/Lists/show/catid/10/id/210.html/Lists/show/catid/10/id/210.html |
PHP_SELF | /en/index.php/index/Lists/show/catid/10/id/210.html |
REQUEST_TIME_FLOAT | 1711662478.5397 |
REQUEST_TIME | 1711662478 |
ROOT_PATH | /home/wwwroot/tuomi123/wwwroot/en |
APP_PATH | /home/wwwroot/tuomi123/wwwroot/en/application |
WEB_URL | http://tomi-em.com/en/ |
APP_HOST | /en |
APP_ROOT_DIR | /home/wwwroot/tuomi123/wwwroot/en |
DOCUMENTY_ROOT_DIR | /home/wwwroot/tuomi123/wwwroot |