getConfig(); return $this->data($result); } /** * @notes 设置用户设置 * @return \think\response\Json * @author cjhao * @date 2021/7/27 17:59 */ public function setConfig() { $params = (new UserConfigValidate())->post()->goCheck('user'); (new UserLogic())->setConfig($params); return $this->success('操作成功',[],1,1); } /** * @notes 获取注册配置 * @return \think\response\Json * @author cjhao * @date 2021/9/14 17:11 */ public function getRegisterConfig() { $result = (new UserLogic())->getRegisterConfig(); return $this->data($result); } /** * @notes 设置注册配置 * @return \think\response\Json * @author cjhao * @date 2021/9/14 17:29 */ public function setRegisterConfig() { $params = (new UserConfigValidate())->post()->goCheck('register'); (new UserLogic())->setRegisterConfig($params); return $this->success('操作成功',[],1,1); } /** * @notes 获取提现配置 * @return \think\response\Json * @author cjhao * @date 2024/8/27 17:56 */ public function getWithdrawConfig() { $result = (new UserLogic())->getWithdrawConfig(); return $this->data($result); } /** * @notes 设置提现配置 * @return \think\response\Json * @author cjhao * @date 2024/8/27 17:56 */ public function setWithdrawConfig() { $params = $this->request->post(); (new UserLogic())->setWithdrawConfig($params); return $this->success('操作成功',[],1,1); } }