$user->id])->order('id desc')->paginate($this->request->param('list_rows', 10))->each(function ($withdraw) { $withdraw->hidden(['withdraw_info']); }); $this->success('获取成功', $withdraws); } // 提现规则 public function rules() { $user = auth_user(); $config = (new WithdrawLibrary($user))->config; $this->success('提现规则', $config); } // 发起提现请求 public function apply() { $user = auth_user(); $params = $this->request->param(); $this->svalidate($params, ".apply"); $withdrawLib = new WithdrawLibrary($user); $withdraw = $withdrawLib->apply($params); $this->success('申请成功', $withdraw); } }