初始版本
This commit is contained in:
49
server/app/coachapi/controller/ConfigController.php
Executable file
49
server/app/coachapi/controller/ConfigController.php
Executable file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
namespace app\coachapi\controller;
|
||||
use app\coachapi\logic\ConfigLogic;
|
||||
|
||||
class ConfigController extends BaseCoachController
|
||||
{
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user