This commit is contained in:
2021-03-23 18:37:43 +08:00
parent f8b4e7d8da
commit bf9b3559c4
+3
View File
@@ -198,6 +198,8 @@ class Response extends HttpService
{ {
$result = Help::toString($result); $result = Help::toString($result);
$string = PHP_EOL . 'Command Result: ' . PHP_EOL . PHP_EOL; $string = PHP_EOL . 'Command Result: ' . PHP_EOL . PHP_EOL;
if (!str_contains($result, 'Event::rshutdown(): Event::wait()')) {
if (empty($result)) { if (empty($result)) {
$string .= 'success!' . PHP_EOL . PHP_EOL; $string .= 'success!' . PHP_EOL . PHP_EOL;
} else { } else {
@@ -205,6 +207,7 @@ class Response extends HttpService
} }
$string .= 'Command End!' . PHP_EOL . PHP_EOL; $string .= 'Command End!' . PHP_EOL . PHP_EOL;
print_r($string); print_r($string);
}
$event = Snowflake::app()->getEvent(); $event = Snowflake::app()->getEvent();
$event->trigger('CONSOLE_END'); $event->trigger('CONSOLE_END');