This commit is contained in:
2020-09-11 18:22:32 +08:00
parent 89b9cc6d1b
commit 7dfd2b0da2
+5 -2
View File
@@ -147,9 +147,12 @@ class Response extends Application
private function printResult($result)
{
$result = Help::toString($result);
$string = PHP_EOL . 'Command Result: ' . PHP_EOL . PHP_EOL;
$string .= empty($result) ? 'success!' : $result . PHP_EOL . PHP_EOL;
if (empty($result)) {
$string .= 'success!' . PHP_EOL . PHP_EOL;
} else {
$string .= $result . PHP_EOL . PHP_EOL;
}
$string .= 'Command End!' . PHP_EOL . PHP_EOL;
echo $string;