mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-10 08:32:48 +08:00
完善think\exception\Handle类
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user