| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * Niushop商城系统 - 团队十年电商经验汇集巨献!
- * =========================================================
- * Copy right 2019-2029 上海牛之云网络科技有限公司, 保留所有权利。
- * ----------------------------------------------
- * 官方网址: https://www.niushop.com
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
- * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
- * =========================================================
- */
- namespace addon\servicer\servicer\controller;
- use addon\servicer\model\Fast as FastModel;
- use app\model\system\Servicer as ServicerModel;
- /**
- * 配置相关
- * Class Config
- * @package addon\servicer\servicer\controller
- */
- class Config extends BaseServicer
- {
- /**
- * 获取配置
- */
- public function config()
- {
- if (request()->isAjax()) {
- $servicer_model = new ServicerModel();
- return $servicer_model->getServicerConfig();
- }
- }
- /**
- * 快捷回复列表
- */
- public function fastList()
- {
- if (request()->isAjax()) {
- $fast_model = new FastModel();
- return $fast_model->getList([['site_id', '=', $this->site_id]], 'content');
- }
- }
- }
|