mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 11:02:48 +08:00
新增查看当前版本命令;简单修改了说明文件;
This commit is contained in:
@@ -111,6 +111,15 @@ php think run
|
|||||||
* 上传文件记录管理
|
* 上传文件记录管理
|
||||||
* 后台路径自定义,防止别人找到对应的后台地址
|
* 后台路径自定义,防止别人找到对应的后台地址
|
||||||
|
|
||||||
|
|
||||||
|
## 版本更新
|
||||||
|
|
||||||
|
保持和thinkPHP、layui的版本同步。
|
||||||
|
|
||||||
|
以后每当实现一个新特性则发布一个tag。
|
||||||
|
|
||||||
|
> tag的主要意义是方便查询文档,比较差异。(ulthon_admin本身是为了定制,不会强制更新)
|
||||||
|
|
||||||
## 开源协议
|
## 开源协议
|
||||||
|
|
||||||
木兰开源协议
|
木兰开源协议
|
||||||
|
|||||||
49
app/common/command/admin/Version.php
Normal file
49
app/common/command/admin/Version.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
declare (strict_types = 1);
|
||||||
|
|
||||||
|
namespace app\common\command\admin;
|
||||||
|
|
||||||
|
use think\console\Command;
|
||||||
|
use think\console\Input;
|
||||||
|
use think\console\input\Argument;
|
||||||
|
use think\console\input\Option;
|
||||||
|
use think\console\Output;
|
||||||
|
|
||||||
|
class Version extends Command
|
||||||
|
{
|
||||||
|
|
||||||
|
const VERSION = 'v2.0.2';
|
||||||
|
|
||||||
|
const COMMENT = [
|
||||||
|
'新增查看当前版本命令',
|
||||||
|
'简单修改了说明文件'
|
||||||
|
];
|
||||||
|
|
||||||
|
protected function configure()
|
||||||
|
{
|
||||||
|
// 指令配置
|
||||||
|
$this->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');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
// | 控制台配置
|
// | 控制台配置
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
use app\common\command\admin\Version;
|
||||||
use app\common\command\admin\ResetPassword;
|
use app\common\command\admin\ResetPassword;
|
||||||
use app\common\command\Timer;
|
use app\common\command\Timer;
|
||||||
|
|
||||||
@@ -14,5 +15,6 @@ return [
|
|||||||
'OssStatic' => 'app\common\command\OssStatic',
|
'OssStatic' => 'app\common\command\OssStatic',
|
||||||
ResetPassword::class,
|
ResetPassword::class,
|
||||||
Timer::class,
|
Timer::class,
|
||||||
|
Version::class
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user