From 508eb0edc712912b2ec46acf2628ec87c29df96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 10 Sep 2020 15:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/BaseGoto.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/System/Abstracts/BaseGoto.php b/System/Abstracts/BaseGoto.php index 256f4fdb..03812e73 100644 --- a/System/Abstracts/BaseGoto.php +++ b/System/Abstracts/BaseGoto.php @@ -6,6 +6,7 @@ namespace Snowflake\Abstracts; use Exception; use HttpServer\Exception\ExitException; +use Snowflake\Core\JSON; /** * Class BaseGoto @@ -20,9 +21,9 @@ class BaseGoto extends Component * @return mixed|void * @throws Exception */ - public function end($message, $statusCode = 200) + public function end(string $message, $statusCode = 200) { - throw new ExitException($message, $statusCode); + throw new ExitException(JSON::to(12350, $message), $statusCode); } }