From 28eb26d68f7a2a4e6b316c3ea9f511aa143db66e Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 30 Sep 2024 16:57:18 +0800
Subject: [PATCH] 55测试环境
---
src/main/java/com/xcong/excoin/modules/home/controller/MemberQuickBuySaleController.java | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/home/controller/MemberQuickBuySaleController.java b/src/main/java/com/xcong/excoin/modules/home/controller/MemberQuickBuySaleController.java
index 5c00ad2..ee8cbfb 100644
--- a/src/main/java/com/xcong/excoin/modules/home/controller/MemberQuickBuySaleController.java
+++ b/src/main/java/com/xcong/excoin/modules/home/controller/MemberQuickBuySaleController.java
@@ -1,5 +1,6 @@
package com.xcong.excoin.modules.home.controller;
+import javax.annotation.Resource;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
@@ -19,6 +20,7 @@
import com.xcong.excoin.modules.home.dto.MemberQuickBuySaleDto;
import com.xcong.excoin.modules.home.service.MemberQuickBuySaleService;
import com.xcong.excoin.modules.member.entity.MemberEntity;
+import com.xcong.excoin.modules.member.service.MemberService;
import cn.hutool.crypto.SecureUtil;
import io.swagger.annotations.Api;
@@ -33,6 +35,8 @@
@Autowired
MemberQuickBuySaleService memberQuickBuySaleService;
+ @Autowired
+ MemberService memberService;
@ApiOperation(value = "recharge", notes = "USDT快速充值")
@RequestMapping(value = "/recharge", method = RequestMethod.POST)
@@ -93,7 +97,8 @@
@RequestMapping(value = "/sell", method = RequestMethod.POST)
public Result sell(@RequestBody @Valid MemberQuickBuySaleDto memberQuickBuySaleDto) {
// 获取当前登录用户
- MemberEntity member = LoginUserUtils.getAppLoginUser();
+ Long memberId = LoginUserUtils.getAppLoginUser().getId();
+ MemberEntity member = memberService.getById(memberId);
if (!MemberEntity.CERTIFY_STATUS_Y.equals(member.getCertifyStatus())) {
return Result.fail("请先实名认证");
}
@@ -114,4 +119,10 @@
}
return memberQuickBuySaleService.sell(member,memberQuickBuySaleDto);
}
+
+ @ApiOperation(value = "cancelSell", notes = "提现撤销")
+ @GetMapping(value = "/cancelSell")
+ public Result cancelSell(@RequestParam(value = "id") Long id) {
+ return memberQuickBuySaleService.cancelSell(id);
+ }
}
--
Gitblit v1.9.1