插件列表

This commit is contained in:
taoser 2021-11-04 13:41:35 +08:00
parent 12d95ad29f
commit 9d64d858ee
5 changed files with 6 additions and 5 deletions

View File

@ -7,8 +7,8 @@
* 后台http://adm.aieok.com:888 * 后台http://adm.aieok.com:888
* 账号test * 账号test
* 密码test123 * 密码test123
* 版本TaoLer 1.8.11 * 版本TaoLer 1.8.12
* 日期2021.11.3 * 日期2021.11.4
#### 项目地址 #### 项目地址

View File

@ -41,6 +41,8 @@ class Addons extends AdminController
foreach($addons as $v){ foreach($addons as $v){
$info_file = '../addons/'.$v.'/info.ini'; $info_file = '../addons/'.$v.'/info.ini';
$info = parse_ini_file($info_file); $info = parse_ini_file($info_file);
$info['show'] = $info['status'] ? '启用' : '禁用';
$info['install'] = $info['status'] ? '是' : '否';
$res['data'][] = $info; $res['data'][] = $info;
} }
$res['col'] = [ $res['col'] = [
@ -50,7 +52,7 @@ class Addons extends AdminController
['field'=> 'version','title'=> '版本', 'width'=> 100], ['field'=> 'version','title'=> '版本', 'width'=> 100],
['field' => 'author','title'=> '作者', 'width'=> 100], ['field' => 'author','title'=> '作者', 'width'=> 100],
['field' => 'description','title'=> '简介', 'minWidth'=> 200], ['field' => 'description','title'=> '简介', 'minWidth'=> 200],
['field' => 'status','title'=> '状态', 'width'=> 100], ['field' => 'show','title'=> '状态', 'width'=> 100],
['field' => 'install','title'=> '安装', 'width'=> 100], ['field' => 'install','title'=> '安装', 'width'=> 100],
['field' => 'ctime','title'=> '到期时间', 'width'=> 150], ['field' => 'ctime','title'=> '到期时间', 'width'=> 150],
['title' => '操作', 'width'=> 220, 'align'=>'center', 'toolbar'=> '#addons-installed-tool'] ['title' => '操作', 'width'=> 220, 'align'=>'center', 'toolbar'=> '#addons-installed-tool']

View File

@ -22,7 +22,6 @@
<script type="text/html" id="toolbar"> <script type="text/html" id="toolbar">
<div class="layui-btn-group" style="padding-bottom: 10px;"> <div class="layui-btn-group" style="padding-bottom: 10px;">
<button class="layui-btn layui-btn-sm layuiadmin-btn-admin" data-type="batchdel">刷新</button>
<button class="layui-btn layui-btn-sm layuiadmin-btn-admin" data-type="add">离线安装</button> <button class="layui-btn layui-btn-sm layuiadmin-btn-admin" data-type="add">离线安装</button>
</div> </div>
<div class="layui-btn-group" style="padding-bottom: 10px;"> <div class="layui-btn-group" style="padding-bottom: 10px;">

View File

@ -7,7 +7,7 @@ return [
//应用名,此项不可更改 //应用名,此项不可更改
'appname' => 'TaoLer', 'appname' => 'TaoLer',
//版本配置 //版本配置
'version' => '1.8.11', 'version' => '1.8.12',
//加盐 //加盐
'salt' => 'taoler', 'salt' => 'taoler',
//数据库备份目录 //数据库备份目录