xiaoyong931011
2021-12-22 6c920885a9bc407f2f05e204ae9769631c4c80e7
src/main/java/cc/mrbird/febs/pay/controller/PayController.java
@@ -11,10 +11,7 @@
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -68,4 +65,10 @@
    public FebsResponse pay(@RequestBody VipBuyDto vipBuyDto) {
        return new FebsResponse().success().data(payService.aliPay(vipBuyDto));
    }
    @ApiOperation("获取usdt地址")
    @GetMapping(value = "/address")
    public FebsResponse address() {
        return new FebsResponse().success().data(this.payService.findUsdtAddress());
    }
}