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 2021/9/14 17:30 */ public function getWithdrawConfig() { $result = (new UserLogic())->getWithdrawConfig(); return $this->data($result); } /** * @notes 提现配置设置 * @return \think\response\Json * @author cjhao * @date 2021/9/16 15:13 */ public function setWithdrawConfig() { $params = (new UserConfigValidate())->post()->goCheck('withdraw'); (new UserLogic())->setWithdrawConfig($params); return $this->success('设置成功',[],1,1); } }