SystemController.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. // +—————————————————————————————————————————————————————————————————————
  3. // | Created by Yunbao
  4. // +—————————————————————————————————————————————————————————————————————
  5. // | Copyright (c) 2013~2022 http://www.yunbaokj.com All rights reserved.
  6. // +—————————————————————————————————————————————————————————————————————
  7. // | Author: https://gitee.com/yunbaokeji
  8. // +—————————————————————————————————————————————————————————————————————
  9. // | Date: 2022-02-17
  10. // +—————————————————————————————————————————————————————————————————————
  11. /**
  12. * 直播间系统消息
  13. */
  14. namespace app\admin\controller;
  15. use cmf\controller\AdminBaseController;
  16. use think\Db;
  17. class SystemController extends AdminbaseController {
  18. public function index(){
  19. $config=getConfigPri();
  20. $this->assign('config', $config);
  21. return $this->fetch('edit');
  22. }
  23. public function send(){
  24. if ($this->request->isPost()) {
  25. $data = $this->request->param();
  26. $content=$data['content'];
  27. if($content==''){
  28. $this->error("内容不能为空!");
  29. }
  30. $this->success("发送成功!");
  31. }
  32. }
  33. }