diff --git a/README.md b/README.md index 85524ea..0765a8e 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ * 后台:http://adm.aieok.com:888 * 账号:test * 密码:test123 - * 版本:TaoLer 1.8.11 - * 日期:2021.11.3 + * 版本:TaoLer 1.8.12 + * 日期:2021.11.4 #### 项目地址 diff --git a/app/admin/controller/Addons.php b/app/admin/controller/Addons.php index 75d2a0c..7ad06e6 100644 --- a/app/admin/controller/Addons.php +++ b/app/admin/controller/Addons.php @@ -41,6 +41,8 @@ class Addons extends AdminController foreach($addons as $v){ $info_file = '../addons/'.$v.'/info.ini'; $info = parse_ini_file($info_file); + $info['show'] = $info['status'] ? '启用' : '禁用'; + $info['install'] = $info['status'] ? '是' : '否'; $res['data'][] = $info; } $res['col'] = [ @@ -50,7 +52,7 @@ class Addons extends AdminController ['field'=> 'version','title'=> '版本', 'width'=> 100], ['field' => 'author','title'=> '作者', 'width'=> 100], ['field' => 'description','title'=> '简介', 'minWidth'=> 200], - ['field' => 'status','title'=> '状态', 'width'=> 100], + ['field' => 'show','title'=> '状态', 'width'=> 100], ['field' => 'install','title'=> '安装', 'width'=> 100], ['field' => 'ctime','title'=> '到期时间', 'width'=> 150], ['title' => '操作', 'width'=> 220, 'align'=>'center', 'toolbar'=> '#addons-installed-tool'] diff --git a/app/admin/view/addons/index.html b/app/admin/view/addons/index.html index 6a86321..057a1d0 100644 --- a/app/admin/view/addons/index.html +++ b/app/admin/view/addons/index.html @@ -22,7 +22,6 @@