test_lgq/niucloud/app/service/admin/member/MemberConfigService.php
2024-01-24 17:36:08 +08:00

74 lines
2.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace app\service\admin\member;
use app\model\sys\SysConfig;
use app\service\core\member\CoreMemberConfigService;
use core\base\BaseAdminService;
use think\Model;
/**
* 会员设置
* Class MemberConfigService
* @package app\service\admin\member
*/
class MemberConfigService extends BaseAdminService
{
/**
* 获取注册与登录设置
*/
public function getLoginConfig(){
return (new CoreMemberConfigService())->getLoginConfig($this->site_id);
}
/**
* 注册登录设置
* @param array $data
* @return true
*/
public function setLoginConfig(array $data){
return (new CoreMemberConfigService())->setLoginConfig($this->site_id, $data);
}
/**
* 获取提现设置
*/
public function getCashOutConfig(){
return (new CoreMemberConfigService())->getCashOutConfig($this->site_id);
}
/**
* 提现设置
* @param array $data
* @return true
*/
public function setCashOutConfig(array $data){
return (new CoreMemberConfigService())->setCashOutConfig($this->site_id, $data);
}
/**
* 获取会员设置
*/
public function getMemberConfig(){
return (new CoreMemberConfigService())->getMemberConfig($this->site_id);
}
/**
* 会员设置
* @param array $data
* @return true
*/
public function setMemberConfig(array $data){
return (new CoreMemberConfigService())->setMemberConfig($this->site_id, $data);
}
}