Platform.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: https://thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // | 免费声明 ( https://thinkadmin.top/disclaimer )
  11. // +----------------------------------------------------------------------
  12. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  13. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  14. // +----------------------------------------------------------------------
  15. namespace app\admin\controller;
  16. use think\admin\Controller;
  17. use think\admin\service\AdminService;
  18. use think\admin\service\ModuleService;
  19. use think\admin\service\SystemService;
  20. use think\admin\storage\AliossStorage;
  21. use think\admin\storage\QiniuStorage;
  22. use think\admin\storage\TxcosStorage;
  23. /**
  24. * 平台参数配置
  25. * Class Platform
  26. * @package app\admin\controller
  27. */
  28. class Platform extends Controller
  29. {
  30. /**
  31. * 系统参数配置
  32. * @auth true
  33. * @menu true
  34. */
  35. public function index()
  36. {
  37. $this->title = '平台参数配置';
  38. $this->fetch();
  39. }
  40. /**
  41. * 修改数据设置
  42. * @auth true
  43. * @menu true
  44. */
  45. public function save(){
  46. if($this->request->isGet()){
  47. $this->fetch();
  48. }else{
  49. print_r($this->request->post());die;
  50. sysconf('app_juhe_config',$this->request->post('row'));
  51. $this->success('成功');
  52. }
  53. }
  54. }