From 8d52f738ec041d6c63c1307ca4f441ddde8339a0 Mon Sep 17 00:00:00 2001 From: augushong Date: Wed, 13 Jul 2022 08:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9F=A5=E7=9C=8B=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=89=88=E6=9C=AC=E5=91=BD=E4=BB=A4=EF=BC=9B=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E4=BF=AE=E6=94=B9=E4=BA=86=E8=AF=B4=E6=98=8E=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++ app/common/command/admin/Version.php | 49 ++++++++++++++++++++++++++++ config/console.php | 2 ++ 3 files changed, 60 insertions(+) create mode 100644 app/common/command/admin/Version.php diff --git a/README.md b/README.md index 862f64a..32b70ab 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,15 @@ php think run * 上传文件记录管理 * 后台路径自定义,防止别人找到对应的后台地址 + +## 版本更新 + +保持和thinkPHP、layui的版本同步。 + +以后每当实现一个新特性则发布一个tag。 + +> tag的主要意义是方便查询文档,比较差异。(ulthon_admin本身是为了定制,不会强制更新) + ## 开源协议 木兰开源协议 diff --git a/app/common/command/admin/Version.php b/app/common/command/admin/Version.php new file mode 100644 index 0000000..84c6a0f --- /dev/null +++ b/app/common/command/admin/Version.php @@ -0,0 +1,49 @@ +setName('admin:version') + ->setDescription('查看当前ulthon_admin的版本号'); + } + + protected function execute(Input $input, Output $output) + { + // 指令输出 + $output->info('当前版本号为:'.$this::VERSION); + + $output->writeln('当前的修改说明:'); + $output->writeln('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'); + + foreach ($this::COMMENT as $comment) { + $output->info($comment); + } + $output->writeln('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<'); + + $output->highlight('代码托管地址:https://gitee.com/ulthon/ulthon_admin'); + $output->highlight('开发文档地址:http://doc.ulthon.com/home/read/ulthon_admin/home.html'); + + + + + } +} diff --git a/config/console.php b/config/console.php index eb24331..47d19fd 100644 --- a/config/console.php +++ b/config/console.php @@ -3,6 +3,7 @@ // | 控制台配置 // +---------------------------------------------------------------------- +use app\common\command\admin\Version; use app\common\command\admin\ResetPassword; use app\common\command\Timer; @@ -14,5 +15,6 @@ return [ 'OssStatic' => 'app\common\command\OssStatic', ResetPassword::class, Timer::class, + Version::class ], ];