完善think\exception\Handle类

This commit is contained in:
yunwuxin
2016-06-21 12:29:28 +08:00
parent 1cb77502a0
commit 4908633e05

View File

@@ -165,7 +165,7 @@ class Handle
if ($exception instanceof HttpException) {
$statusCode = $exception->getStatusCode();
//TODO 设置headers 等待response完善
$response->header($exception->getHeaders());
}
if (!isset($statusCode)) {
@@ -207,7 +207,7 @@ class Handle
Lang::load(THINK_PATH . 'lang' . DS . Lang::detect() . EXT);
}
if (strpos($message,':')) {
if (strpos($message, ':')) {
$name = strstr($message, ':', true);
return Lang::has($name) ? Lang::get($name) . ' ' . strstr($message, ':') : $message;
} else {