From bf9b3559c4ad908fee2abe33095ac340022c000d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 18:37:43 +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 --- HttpServer/Http/Response.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index b23e354d..1196c18c 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -198,13 +198,16 @@ class Response extends HttpService { $result = Help::toString($result); $string = PHP_EOL . 'Command Result: ' . PHP_EOL . PHP_EOL; - if (empty($result)) { - $string .= 'success!' . PHP_EOL . PHP_EOL; - } else { - $string .= $result . PHP_EOL . PHP_EOL; + + if (!str_contains($result, 'Event::rshutdown(): Event::wait()')) { + if (empty($result)) { + $string .= 'success!' . PHP_EOL . PHP_EOL; + } else { + $string .= $result . PHP_EOL . PHP_EOL; + } + $string .= 'Command End!' . PHP_EOL . PHP_EOL; + print_r($string); } - $string .= 'Command End!' . PHP_EOL . PHP_EOL; - print_r($string); $event = Snowflake::app()->getEvent(); $event->trigger('CONSOLE_END');