智慧教务系统 PHP-NiuCloud框架开发
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.2 KiB

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址:https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\adminapi\controller\channel;
use app\service\admin\channel\PcService;
use core\base\BaseAdminController;
use think\Response;
class Pc extends BaseAdminController
{
/**
* 获取PC配置信息
* @return Response
*/
public function get()
{
return success((new PcService())->getPc());
}
/**
* 设置PC配置信息
* @return Response
*/
public function set()
{
$data = $this->request->params([
['is_open', 0],
]);
(new PcService())->setPc($data);
return success('SET_SUCCESS');
}
}