Files
anmo/server/app/shopapi/controller/ConfigController.php
2025-08-19 14:16:51 +08:00

50 lines
1.2 KiB
PHP
Executable File

<?php
namespace app\shopapi\controller;
use app\shopapi\logic\ConfigLogic;
class ConfigController extends BaseShopController
{
public array $notNeedLogin = ['config','agreement'];
/**
* @notes 基础配置信息
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author ljj
* @date 2022/2/23 10:31 上午
*/
public function config()
{
$result = (new ConfigLogic())->config();
return $this->success('获取成功',$result);
}
/**
* @notes 政策协议
* @return \think\response\Json
* @author ljj
* @date 2022/2/23 11:42 上午
*/
public function agreement()
{
$result = (new ConfigLogic())->agreement();
return $this->success('获取成功',$result);
}
/**
* @notes 获取客服配置
* @return \think\response\Json
* @author cjhao
* @date 2024/11/1 18:16
*/
public function getKefuConfig()
{
$result = (new ConfigLogic())->getKefuConfig();
return $this->success('',$result);
}
}