userId,$this->userInfo['terminal']); return $this->data($result); } /** * @notes 提现申请 * @return \think\response\Json * @author Tab * @date 2021/8/6 17:28 */ public function apply() { $params = (new WithdrawValidate())->post()->goCheck('apply', ['user_id' => $this->userId]); $params['user_id'] = $this->userId; $result = WithdrawLogic::apply($params); if($result !== false) { return $this->success('提现申请成功', ['id' => $result]); } return $this->fail(WithdrawLogic::getError()); } /** * @notes 查看提现申请列表 * @return \think\response\Json * @author Tab * @date 2021/8/6 18:42 */ public function lists() { return $this->dataLists(); } /** * @notes 查看提现申请详情 * @return \think\response\Json * @author Tab * @date 2021/8/6 19:03 */ public function detail() { $params = (new WithdrawValidate())->goCheck('detail'); $result = WithdrawLogic::detail($params); return $this->data($result); } }