mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
同步更新代码
This commit is contained in:
parent
cd2482e4e3
commit
f8b55cdc68
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin;
|
namespace app\admin;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller\api;
|
namespace app\admin\controller\api;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller\api;
|
namespace app\admin\controller\api;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller\api;
|
namespace app\admin\controller\api;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
namespace app\admin\controller\api;
|
namespace app\admin\controller\api;
|
||||||
|
52
app/admin/route/demo.php
Normal file
52
app/admin/route/demo.php
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | Admin Plugin for ThinkAdmin
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 版权所有 2014~2023 Anyon <zoujingli@qq.com>
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 官方网站: https://thinkadmin.top
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 开源协议 ( https://mit-license.org )
|
||||||
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
use think\admin\Library;
|
||||||
|
use think\admin\service\RuntimeService;
|
||||||
|
|
||||||
|
/*! 演示环境禁止操作路由绑定 */
|
||||||
|
if (RuntimeService::check('demo')) {
|
||||||
|
Library::$sapp->route->post('index/pass', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('config/system', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止修改系统配置!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('config/storage', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止修改系统配置!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('menu', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止给菜单排序!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('menu/index', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止给菜单排序!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('menu/add', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止添加菜单!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('menu/edit', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止编辑菜单!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('menu/state', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止禁用菜单!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('menu/remove', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止删除菜单!']);
|
||||||
|
});
|
||||||
|
Library::$sapp->route->post('user/pass', function () {
|
||||||
|
return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']);
|
||||||
|
});
|
||||||
|
}
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
use think\migration\Migrator;
|
use think\migration\Migrator;
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
// | 免费声明 ( https://thinkadmin.top/disclaimer )
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
// | gitee 代码仓库:https://gitee.com/zoujingli/think-plugs-admin
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/think-plugs-admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
use think\admin\extend\PhinxExtend;
|
use think\admin\extend\PhinxExtend;
|
||||||
@ -93,7 +94,9 @@ class InstallAdminData extends Migrator
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
], ['node' => 'admin/config/index']);
|
], [
|
||||||
|
'url|node' => 'admin/config/index'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
2
license
2
license
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 邹景立
|
Copyright (c) 2020~2023 邹景立 <zoujingli@qq.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user