From 181e3c0c3bd136150ac67f05608b1d668ed5a7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 11:52:11 +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 --- Console/DefaultCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Console/DefaultCommand.php b/Console/DefaultCommand.php index a334e047..64286cc3 100644 --- a/Console/DefaultCommand.php +++ b/Console/DefaultCommand.php @@ -25,19 +25,19 @@ class DefaultCommand extends Command $param = $dtl->get('commandList'); $last = ''; - $lists = ["\vCommands\t" . '注释']; + $lists = ["Commands\t" . '注释']; foreach ($param as $key => $val) { $split = explode(':', $key); if (empty($last) && isset($split[0])) { - $lists[] = "\v\033[32;40;1;1m" . $split[0] . " \033[0m\t"; + $lists[] = "\033[32;40;1;1m" . $split[0] . " \033[0m\t"; } else if (isset($split[0]) && $last != $split[0]) { - $lists[] = "\v\033[32;40;1;1m" . $split[0] . " \033[0m\t"; + $lists[] = "\033[32;40;1;1m" . $split[0] . " \033[0m\t"; } $last = $split[0] ?? ''; list($method, $ts) = $val; - $lists[] = "\v\033[32;40;1;1m " . $key . " \033[0m\t" . $method; + $lists[] = "\033[32;40;1;1m " . $key . " \033[0m\t\v" . $method."\v"; } return implode(PHP_EOL, $lists); }