This commit is contained in:
2021-08-03 15:19:23 +08:00
parent fed06d7728
commit c143995fbd
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -209,11 +209,11 @@ class Response extends HttpService
private function printResult($result): void
{
$result = Help::toString($result);
$string = 'Command Result: ' . PHP_EOL . PHP_EOL;
fire('CONSOLE_END');
if (str_contains((string)$result, 'Event::rshutdown(): Event::wait()')) {
return;
}
$string = 'Command Result: ' . PHP_EOL . PHP_EOL;
if (empty($result)) {
$string .= 'success!' . PHP_EOL . PHP_EOL;
} else {
@@ -224,6 +224,7 @@ class Response extends HttpService
/**
* @param $sendData
* @throws Exception
*/
private function sendData($sendData): void
{