H5Config.php 732 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\admin\controller\index;
  3. use app\admin\controller\BaseController;
  4. use app\admin\server\index\H5ConfigServer;
  5. class H5Config extends BaseController
  6. {
  7. /**
  8. * Notes:设置详情
  9. * @return \support\Response
  10. * User: ycp
  11. * Date: 2023/2/15
  12. */
  13. public function getConfig()
  14. {
  15. return json_success(H5ConfigServer::getConfig(), '获取成功');
  16. }
  17. /**
  18. * Notes:修改设置
  19. * @return \support\Response
  20. * User: YCP
  21. * Date: 2023/2/15
  22. */
  23. public function updateConfig()
  24. {
  25. $params = $this->request->post();
  26. $result = H5ConfigServer::updateConfig($params);
  27. return json_success($result, '修改成功');
  28. }
  29. }