Index.php 545 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace addons\umeditor\controller;
  3. use think\addons\Controller;
  4. use think\Config;
  5. /**
  6. * Umeditor
  7. *
  8. */
  9. class Index extends Controller
  10. {
  11. public function _initialize()
  12. {
  13. parent::_initialize();
  14. }
  15. public function index()
  16. {
  17. $this->error("当前插件暂无前台页面");
  18. }
  19. public function get_map_config()
  20. {
  21. $config = get_addon_config('umeditor');
  22. $params = [
  23. 'baidumapkey' => $config['baidumapkey'] ?? ''
  24. ];
  25. return json($params);
  26. }
  27. }