调整代码

This commit is contained in:
Anyon 2020-04-09 10:18:28 +08:00
parent 0542ca2f99
commit 5174883417
17 changed files with 113 additions and 106 deletions

View File

@ -16,6 +16,7 @@
namespace app\admin\controller\api; namespace app\admin\controller\api;
use think\admin\Controller; use think\admin\Controller;
use think\admin\service\AdminService;
use think\admin\service\SystemService; use think\admin\service\SystemService;
use think\exception\HttpResponseException; use think\exception\HttpResponseException;
@ -44,6 +45,9 @@ class Plugs extends Controller
public function optimize() public function optimize()
{ {
try { try {
if (AdminService::instance()->getUserName() !== 'admin') {
$this->error('只有超级管理员才能操作!');
}
$this->app->console->call('optimize:route'); $this->app->console->call('optimize:route');
$this->app->console->call('optimize:schema'); $this->app->console->call('optimize:schema');
$this->success('网站缓存加速成功!'); $this->success('网站缓存加速成功!');
@ -61,6 +65,9 @@ class Plugs extends Controller
public function clear() public function clear()
{ {
try { try {
if (AdminService::instance()->getUserName() !== 'admin') {
$this->error('只有超级管理员才能操作!');
}
$this->app->console->call('clear'); $this->app->console->call('clear');
$this->success('清理网站缓存成功!'); $this->success('清理网站缓存成功!');
} catch (HttpResponseException $exception) { } catch (HttpResponseException $exception) {
@ -77,6 +84,9 @@ class Plugs extends Controller
public function debug() public function debug()
{ {
if (input('state')) { if (input('state')) {
if (AdminService::instance()->getUserName() !== 'admin') {
$this->error('只有超级管理员才能操作!');
}
SystemService::instance()->productMode(true); SystemService::instance()->productMode(true);
$this->success('已切换为生产模式!'); $this->success('已切换为生产模式!');
} else { } else {

View File

@ -3,7 +3,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -2,8 +2,19 @@
{block name="button"} {block name="button"}
{if session('user.username') eq 'admin'}
<div class="layui-form inline-block think-switch-button margin-right-10">
<!--{if $app->isDebug()}-->
<input type="checkbox" lay-skin="switch" lay-text="生产模式|开发模式" lay-filter="ThinkAdminDebug">
<!--{else}-->
<input type="checkbox" lay-skin="switch" lay-text="生产模式|开发模式" lay-filter="ThinkAdminDebug" checked>
<!--{/if}-->
</div>
<script>form.render()</script>
{/if}
{if auth('system')} {if auth('system')}
<a class="layui-btn layui-btn-sm layui-btn-primary" data-modal="{:url('system')}">修改系统配置</a> <a class="layui-btn layui-btn-sm layui-btn-primary" data-modal="{:url('system')}">修改系统参数</a>
{/if} {/if}
{/block} {/block}

View File

@ -48,20 +48,12 @@
{if session('user.username')} {if session('user.username')}
<li class="layui-nav-item"> <li class="layui-nav-item">
<dl class="layui-nav-child"> <dl class="layui-nav-child">
{if session('user.username') eq 'admin'}
<dd lay-unselect class="layui-form text-center think-switch-button">
<a></a>
{if $app->isDebug()}
<input type="checkbox" lay-skin="switch" lay-text="生产模式|开发模式" lay-filter="ThinkAdminDebug">
{else}
<input type="checkbox" lay-skin="switch" lay-text="生产模式|开发模式" lay-filter="ThinkAdminDebug" checked>
{/if}
</dd>
{/if}
<dd lay-unselect><a data-modal="{:url('admin/index/info',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-set-fill margin-right-5"></i> 基本资料</a></dd> <dd lay-unselect><a data-modal="{:url('admin/index/info',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-set-fill margin-right-5"></i> 基本资料</a></dd>
<dd lay-unselect><a data-modal="{:url('admin/index/pass',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-component margin-right-5"></i> 安全设置</a></dd> <dd lay-unselect><a data-modal="{:url('admin/index/pass',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-component margin-right-5"></i> 安全设置</a></dd>
{if session('user.username') eq 'admin'}
<dd lay-unselect><a data-load="{:url('admin/api.plugs/optimize')}"><i class="layui-icon layui-icon-template-1 margin-right-5"></i> 缓存加速</a></dd> <dd lay-unselect><a data-load="{:url('admin/api.plugs/optimize')}"><i class="layui-icon layui-icon-template-1 margin-right-5"></i> 缓存加速</a></dd>
<dd lay-unselect><a data-load="{:url('admin/api.plugs/clear')}"><i class="layui-icon layui-icon-fonts-clear margin-right-5"></i> 清理缓存</a></dd> <dd lay-unselect><a data-load="{:url('admin/api.plugs/clear')}"><i class="layui-icon layui-icon-fonts-clear margin-right-5"></i> 清理缓存</a></dd>
{/if}
<dd lay-unselect><a data-load="{:url('admin/login/out')}" data-confirm="确定要退出登录吗?"><i class="layui-icon layui-icon-release margin-right-5"></i> 退出登录</a></dd> <dd lay-unselect><a data-load="{:url('admin/login/out')}" data-confirm="确定要退出登录吗?"><i class="layui-icon layui-icon-release margin-right-5"></i> 退出登录</a></dd>
</dl> </dl>
<a><span><i class="layui-icon layui-icon-username margin-right-5"></i> {:session('user.username')}</span></a> <a><span><i class="layui-icon layui-icon-username margin-right-5"></i> {:session('user.username')}</span></a>

View File

@ -1,6 +1,8 @@
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off"> <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
<div class="layui-card-body padding-left-40"> <div class="layui-card-body padding-left-40">
<fieldset class="layui-form-item layui-row layui-col-space15"> <fieldset class="layui-form-item">
<legend class="layui-bg-gray">账号信息</legend>
<div class="layui-row layui-col-space15">
<div class="layui-col-xs2"> <div class="layui-col-xs2">
<input type="hidden" name="headimg" value="{$vo.headimg|default=''}"> <input type="hidden" name="headimg" value="{$vo.headimg|default=''}">
<script>$('[name=headimg]').uploadOneImage()</script> <script>$('[name=headimg]').uploadOneImage()</script>
@ -25,8 +27,11 @@
<span class="help-block">用户显示的账号别名,请尽量保持不要重复</span> <span class="help-block">用户显示的账号别名,请尽量保持不要重复</span>
</label> </label>
</div> </div>
</div>
</fieldset> </fieldset>
<fieldset class="layui-form-item layui-row layui-col-space15"> <fieldset class="layui-form-item">
<legend class="layui-bg-gray">用户资料</legend>
<div class="layui-row layui-col-space15">
<div class="layui-col-xs4"> <div class="layui-col-xs4">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">联系邮箱</span> <span class="color-green font-w7">联系邮箱</span>
@ -51,10 +56,11 @@
<span class="color-desc">可选,请填写常用的联系QQ号</span> <span class="color-desc">可选,请填写常用的联系QQ号</span>
</label> </label>
</div> </div>
</div>
</fieldset> </fieldset>
{notempty name='authorizes'} {notempty name='authorizes'}
<div class="layui-form-item layui-col-space10"> <div class="layui-form-item layui-col-space10">
<span class="color-green font-w7">访问</span> <span class="color-green font-w7">访问权</span>
<span class="color-desc margin-left-5">Authorize</span> <span class="color-desc margin-left-5">Authorize</span>
<div class="layui-textarea"> <div class="layui-textarea">
{if isset($vo.username) and $vo.username eq 'admin'} {if isset($vo.username) and $vo.username eq 'admin'}

View File

@ -3,19 +3,19 @@
{block name="button"} {block name="button"}
{if isset($type) and $type eq 'all'} {if isset($type) and $type eq 'all'}
{if auth("add")} <!--{if auth("add")}-->
<button data-modal='{:url("add")}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加用户</button> <button data-modal='{:url("add")}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加用户</button>
{/if} <!--{/if}-->
{if auth("state")} <!--{if auth("state")}-->
<a data-confirm="确定要启用该用户吗?" data-action="{:url('state')}" data-rule="id#{key};status#0" data-csrf="{:systoken('state')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量禁用</a> <a data-confirm="确定要启用该用户吗?" data-action="{:url('state')}" data-rule="id#{key};status#0" data-csrf="{:systoken('state')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量禁用</a>
{/if} <!--{/if}-->
{else} {else}
{if auth("state")} <!--{if auth("state")}-->
<a data-confirm="确定要恢复这些账号吗?" data-action="{:url('state')}" data-rule="id#{key};status#1" data-csrf="{:systoken('state')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量恢复</a> <a data-confirm="确定要恢复这些账号吗?" data-action="{:url('state')}" data-rule="id#{key};status#1" data-csrf="{:systoken('state')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量恢复</a>
{/if} <!--{/if}-->
{if auth("remove")} <!--{if auth("remove")}-->
<a data-confirm="确定要永久删除这些账号吗?" data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</a> <a data-confirm="确定要永久删除这些账号吗?" data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</a>
{/if} <!--{/if}-->
{/if} {/if}
{/block} {/block}
@ -43,7 +43,7 @@
<th class='list-table-sort-td'> <th class='list-table-sort-td'>
<button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button> <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
</th> </th>
<th class='text-left nowrap' width="150px"></th> <th class='text-left nowrap' width="180px"></th>
<th class='text-left nowrap' width="150px"></th> <th class='text-left nowrap' width="150px"></th>
<th class='text-left nowrap'></th> <th class='text-left nowrap'></th>
<th></th> <th></th>
@ -81,32 +81,31 @@
<td class='text-left nowrap'> <td class='text-left nowrap'>
{if isset($type) and $type eq 'all'} {if isset($type) and $type eq 'all'}
{if auth("pass")} <!--{if auth("pass")}-->
<a class="layui-btn layui-btn-sm layui-btn-normal" data-title="设置密码" data-modal='{:url("pass")}?id={$vo.id}'>密 码</a> <a class="layui-btn layui-btn-sm layui-btn-normal" data-title="设置密码" data-modal='{:url("pass")}?id={$vo.id}'>密 码</a>
{/if} <!--{/if}-->
{if auth("edit")} <!--{if auth("edit")}-->
<a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑资料" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a> <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
{/if} <!--{/if}-->
{if auth("state") and $vo.status eq 1} <!--{if auth("state") and $vo.status eq 1}-->
<a class="layui-btn layui-btn-sm layui-btn-warm" data-confirm="确定要禁用该禁用账号吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a> <a class="layui-btn layui-btn-sm layui-btn-warm" data-confirm="确定要禁用该禁用账号吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a>
{/if} <!--{/if}-->
{else} {else}
{if auth("edit")} <!--{if auth("edit")}-->
<a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑资料" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a> <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
{/if} <!--{/if}-->
{if auth("state") and $vo.status eq 0} <!--{if auth("state") and $vo.status eq 0}-->
<a class="layui-btn layui-btn-sm layui-btn-warm" data-confirm="确定要恢复该账号吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">恢 复</a> <a class="layui-btn layui-btn-sm layui-btn-warm" data-confirm="确定要恢复该账号吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">恢 复</a>
{/if} <!--{/if}-->
{if auth("remove")} <!--{if auth("remove")}-->
<a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要永久删除此账号吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a> <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要永久删除此账号吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
{/if} <!--{/if}-->
{/if} {/if}
</td> </td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
</table> </table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty} {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -3,7 +3,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
@ -288,7 +288,6 @@ $(function () {
// 后台菜单动作初始化 // 后台菜单动作初始化
this.listen = function () { this.listen = function () {
/*! 初始化操作*/ /*! 初始化操作*/
layui.form.render();
layui.form.on('switch(ThinkAdminDebug)', function (data) { layui.form.on('switch(ThinkAdminDebug)', function (data) {
jQuery.post(webRoot + '?s=admin/api.plugs/debug', {state: data.elem.checked ? 1 : 0}); jQuery.post(webRoot + '?s=admin/api.plugs/debug', {state: data.elem.checked ? 1 : 0});
}); });

View File

@ -1,7 +1,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -155,16 +155,8 @@
.layui-layout.layui-layout-left-hide [data-target-menu-type] { .layui-layout.layui-layout-left-hide [data-target-menu-type] {
display: none; display: none;
} }
/* 浏览器DEBUG */ .think-switch-button .layui-form-switch {
.version-debug { margin-top: 0;
width: 100%;
color: #fff;
height: 100px;
font-size: 20px;
text-align: center;
line-height: 100px;
margin-bottom: 40px;
background-color: #E90D24;
} }
.input-right-icon { .input-right-icon {
top: 0; top: 0;

View File

@ -1 +1 @@
{"version":3,"sources":["console.layout.less"],"names":[],"mappings":";AACA,aACE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAJJ,aAOE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAVJ,aAOE,cAKE;EACE,gBAAA;;AAbN,aAOE,cAKE,cAGE;EACE,kBAAA;;AAhBR,aAOE,cAKE,cAOE;EACE,YAAA;EACA,YAAA;EACA,iBAAA;EACA,0CAAA;EACA,gBAAA;;;AAOR;EACE,YAAA;EACA,mBAAA;;AAFF,aAIE;EAEE,uCAAA;EACA,2CAAA;;AAPJ,aAUE;AAVF,aAW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KN,eAuCE,eAkIE;AAzKJ,eAuCE,eAkIa;EACT,QAAA;EACA,SAAA;EACA,WAAA;EACA,qBAAA;EACA,8BAAA;EACA,sBAAA;EACA,uBAAA;;AAhLN,eAuCE,eA4IE;EACE,UAAA;EACA,YAAA;EACA,yBAAA;;AAtLN,eAuCE,eAkJE;EACE,UAAA;EACA,YAAA;EACA,yBAAA","file":"console.layout.css"} {"version":3,"sources":["console.layout.less"],"names":[],"mappings":";AACA,aACE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAJJ,aAOE;EACE,SAAA;EACA,SAAA;EACA,cAAA;;AAVJ,aAOE,cAKE;EACE,gBAAA;;AAbN,aAOE,cAKE,cAGE;EACE,kBAAA;;AAhBR,aAOE,cAKE,cAOE;EACE,YAAA;EACA,YAAA;EACA,iBAAA;EACA,0CAAA;EACA,gBAAA;;;AAOR;EACE,YAAA;EACA,mBAAA;;AAFF,aAIE;EAEE,uCAAA;EACA,2CAAA;;AAPJ,aAUE;AAVF,aAWE;EACE,UAAA;;AAZJ,aAeE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;EACA,2CAAA;EACA,4CAAA;;AAtBJ,aAeE,YASE;EACE,cAAA;EACA,gBAAA;;AA1BN,aA8BE;EACE,YAAA;EACA,iBAAA;;AAEA,aAJF,gBAIG;EACC,mBAAA;;AAnCN,aA8BE,gBAQE;EACE,WAAA;;AAvCN,aA8BE,gBAYE;EACE,SAAA;EACA,UAAA;EACA,YAAA;EACA,iBAAA;;AA9CN,aA8BE,gBAYE,iBAME;EACE,mBAAA;;AAGF,aAtBJ,gBAYE,iBAUG,WAAY;EACX,gBAAA;;AAGF,aA1BJ,gBAYE,iBAcG,WAAY,IAAI;EACf,WAAA;;AAzDR,aA8BE,gBAYE,iBAkBE,GAAG;EACD,UAAA;EACA,WAAA;EACA,kBAAA;EACA,6BAAA;;AAhER,aAqEE;AArEF,aAqEkB,gBAAe;EAC7B,aAAA;;AAtEJ,aAyE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;AAvHN,eAuCE,eAmFE;EACE,UAAA;EACA,WAAA;EACA,iBAAA;EACA,yDAAA;;AA9HN,eAuCE,eA0FE;EACE,WAAA;EACA,YAAA;EACA,YAAA;EACA,cAAA;EACA,kBAAA;EACA,yBAAA;EACA,yBAAA;;AAxIN,eAuCE,eA0FE,UASE;AA1IN,eAuCE,eA0FE,UASM,GAAG;EACL,WAAA;EACA,UAAA;EACA,WAAA;EACA,cAAA;EACA,WAAA;;AA/IR,eAuCE,eA0FE,UAiBE,GAAG,GACD;EACE,cAAA;EACA,sCAAA;;AAEA,eAhHR,eA0FE,UAiBE,GAAG,GACD,EAIG;EACC,mBAAA;EACA,gCAAA;;AAIJ,eAtHN,eA0FE,UAiBE,GAAG,GAWA,WAAY,EAAC;EACZ,yBAAA;;AA9JV,eAuCE,eA4HE;EACE,SAAA;EACA,kBAAA;EACA,iBAAA;;AAtKN,eAuCE,eAkIE;AAzKJ,eAuCE,eAkIa;EACT,QAAA;EACA,SAAA;EACA,WAAA;EACA,qBAAA;EACA,8BAAA;EACA,sBAAA;EACA,uBAAA;;AAhLN,eAuCE,eA4IE;EACE,UAAA;EACA,YAAA;EACA,yBAAA;;AAtLN,eAuCE,eAkJE;EACE,UAAA;EACA,YAAA;EACA,yBAAA","file":"console.layout.css"}

View File

@ -3,7 +3,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -3,7 +3,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | ThinkAdmin // | ThinkAdmin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ] // | 版权所有 2014~2020 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top // | 官方网站: http://demo.thinkadmin.top
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------

View File

@ -197,7 +197,6 @@ return array(
'app\\admin\\controller\\Oplog' => $baseDir . '/app/admin/controller/Oplog.php', 'app\\admin\\controller\\Oplog' => $baseDir . '/app/admin/controller/Oplog.php',
'app\\admin\\controller\\Queue' => $baseDir . '/app/admin/controller/Queue.php', 'app\\admin\\controller\\Queue' => $baseDir . '/app/admin/controller/Queue.php',
'app\\admin\\controller\\User' => $baseDir . '/app/admin/controller/User.php', 'app\\admin\\controller\\User' => $baseDir . '/app/admin/controller/User.php',
'app\\admin\\controller\\api\\Config' => $baseDir . '/app/admin/controller/api/Config.php',
'app\\admin\\controller\\api\\Plugs' => $baseDir . '/app/admin/controller/api/Plugs.php', 'app\\admin\\controller\\api\\Plugs' => $baseDir . '/app/admin/controller/api/Plugs.php',
'app\\admin\\controller\\api\\Queue' => $baseDir . '/app/admin/controller/api/Queue.php', 'app\\admin\\controller\\api\\Queue' => $baseDir . '/app/admin/controller/api/Queue.php',
'app\\admin\\controller\\api\\Update' => $baseDir . '/app/admin/controller/api/Update.php', 'app\\admin\\controller\\api\\Update' => $baseDir . '/app/admin/controller/api/Update.php',

View File

@ -330,7 +330,6 @@ class ComposerStaticInit4ceee63a2cdf20349907f5909444af96
'app\\admin\\controller\\Oplog' => __DIR__ . '/../..' . '/app/admin/controller/Oplog.php', 'app\\admin\\controller\\Oplog' => __DIR__ . '/../..' . '/app/admin/controller/Oplog.php',
'app\\admin\\controller\\Queue' => __DIR__ . '/../..' . '/app/admin/controller/Queue.php', 'app\\admin\\controller\\Queue' => __DIR__ . '/../..' . '/app/admin/controller/Queue.php',
'app\\admin\\controller\\User' => __DIR__ . '/../..' . '/app/admin/controller/User.php', 'app\\admin\\controller\\User' => __DIR__ . '/../..' . '/app/admin/controller/User.php',
'app\\admin\\controller\\api\\Config' => __DIR__ . '/../..' . '/app/admin/controller/api/Config.php',
'app\\admin\\controller\\api\\Plugs' => __DIR__ . '/../..' . '/app/admin/controller/api/Plugs.php', 'app\\admin\\controller\\api\\Plugs' => __DIR__ . '/../..' . '/app/admin/controller/api/Plugs.php',
'app\\admin\\controller\\api\\Queue' => __DIR__ . '/../..' . '/app/admin/controller/api/Queue.php', 'app\\admin\\controller\\api\\Queue' => __DIR__ . '/../..' . '/app/admin/controller/api/Queue.php',
'app\\admin\\controller\\api\\Update' => __DIR__ . '/../..' . '/app/admin/controller/api/Update.php', 'app\\admin\\controller\\api\\Update' => __DIR__ . '/../..' . '/app/admin/controller/api/Update.php',

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php <?php
// This file is automatically generated at:2020-04-08 14:47:43 // This file is automatically generated at:2020-04-09 09:52:11
declare (strict_types = 1); declare (strict_types = 1);
return array ( return array (
0 => 'think\\app\\Service', 0 => 'think\\app\\Service',