Config.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 上海牛之云网络科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
  9. * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
  10. * =========================================================
  11. */
  12. namespace addon\servicer\servicer\controller;
  13. use addon\servicer\model\Fast as FastModel;
  14. use app\model\system\Servicer as ServicerModel;
  15. /**
  16. * 配置相关
  17. * Class Config
  18. * @package addon\servicer\servicer\controller
  19. */
  20. class Config extends BaseServicer
  21. {
  22. /**
  23. * 获取配置
  24. */
  25. public function config()
  26. {
  27. if (request()->isAjax()) {
  28. $servicer_model = new ServicerModel();
  29. return $servicer_model->getServicerConfig();
  30. }
  31. }
  32. /**
  33. * 快捷回复列表
  34. */
  35. public function fastList()
  36. {
  37. if (request()->isAjax()) {
  38. $fast_model = new FastModel();
  39. return $fast_model->getList([['site_id', '=', $this->site_id]], 'content');
  40. }
  41. }
  42. }