1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkAdmin
- // +----------------------------------------------------------------------
- // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
- // +----------------------------------------------------------------------
- // | 官方网站: https://thinkadmin.top
- // +----------------------------------------------------------------------
- // | 开源协议 ( https://mit-license.org )
- // | 免费声明 ( https://thinkadmin.top/disclaimer )
- // +----------------------------------------------------------------------
- // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
- // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
- // +----------------------------------------------------------------------
- namespace app\admin\controller;
- use think\admin\Controller;
- use think\admin\service\AdminService;
- use think\admin\service\ModuleService;
- use think\admin\service\SystemService;
- use think\admin\storage\AliossStorage;
- use think\admin\storage\QiniuStorage;
- use think\admin\storage\TxcosStorage;
- /**
- * 平台参数配置
- * Class Platform
- * @package app\admin\controller
- */
- class Platform extends Controller
- {
- /**
- * 系统参数配置
- * @auth true
- * @menu true
- */
- public function index()
- {
- if($this->request->isGet()){
- $this->title = '平台参数配置';
- $this->fetch();
- }else{
- $post = $this->request->post();
- foreach ($post as $k => $v) sysconf($k, $v);
- sysoplog('系统配置管理', "修改系统参数成功");
- $this->success('修改平台参数成功');
- }
- }
- }
|