This commit is contained in:
as2252258@163.com
2021-07-25 13:30:08 +08:00
parent 81a316377b
commit dd4f460e57
+2 -2
View File
@@ -199,7 +199,7 @@ class Response extends HttpService
private function printResult($result): void private function printResult($result): void
{ {
$result = Help::toString($result); $result = Help::toString($result);
$string = PHP_EOL . 'Command Result: ' . PHP_EOL . PHP_EOL; $string = 'Command Result: ' . PHP_EOL . PHP_EOL;
fire('CONSOLE_END'); fire('CONSOLE_END');
if (str_contains((string)$result, 'Event::rshutdown(): Event::wait()')) { if (str_contains((string)$result, 'Event::rshutdown(): Event::wait()')) {
return; return;
@@ -209,7 +209,7 @@ class Response extends HttpService
} else { } else {
$string .= $result . PHP_EOL . PHP_EOL; $string .= $result . PHP_EOL . PHP_EOL;
} }
$string .= 'Command End!' . PHP_EOL . PHP_EOL; $string .= 'Command End!' . PHP_EOL;
print_r($string); print_r($string);
} }