其余文件
This commit is contained in:
40
app/admin/controller/community/CommunitySetting.php
Normal file
40
app/admin/controller/community/CommunitySetting.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\admin\controller\community;
|
||||
|
||||
|
||||
use app\admin\logic\community\CommunitySettingLogic;
|
||||
use app\common\basics\AdminBase;
|
||||
use app\common\server\JsonServer;
|
||||
|
||||
/**
|
||||
* 种草社区设置
|
||||
* Class CommunityTopic
|
||||
* @package app\admin\controller\content
|
||||
*/
|
||||
class CommunitySetting extends AdminBase
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 社区配置
|
||||
* @return \think\response\Json|\think\response\View
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author 段誉
|
||||
* @date 2022/4/28 16:16
|
||||
*/
|
||||
public function setting()
|
||||
{
|
||||
if ($this->request->isAjax()) {
|
||||
$post = $this->request->post();
|
||||
CommunitySettingLogic::setConfig($post);
|
||||
return JsonServer::success('操作成功');
|
||||
}
|
||||
$config = CommunitySettingLogic::getConfig();
|
||||
return view('', ['config' => $config]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user