From 1b20d1ef242f100936c69cded87ca37967db96e8 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Thu, 21 Jul 2016 10:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=9D=E6=8C=81=E5=8E=9F=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/exception/Handle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/exception/Handle.php b/library/think/exception/Handle.php index fefdef00..7b3d0ff1 100644 --- a/library/think/exception/Handle.php +++ b/library/think/exception/Handle.php @@ -103,7 +103,7 @@ class Handle $status = $e->getStatusCode(); $template = Config::get('http_exception_template'); if (!App::$debug && !empty($template[$status])) { - return Response::create($template[$status], 'view')->assign(['e' => $e]); + return Response::create($template[$status], 'view', $status)->assign(['e' => $e]); } else { return $this->convertExceptionToResponse($e); }