| | |
| | | @ApiOperation(value = "开盲盒", notes = "开盲盒") |
| | | @PostMapping(value = "/boxSurprise") |
| | | public FebsResponse boxSurprise() { |
| | | // ActiveNftListVo data = dappWalletService.boxSurprise(); |
| | | // return new FebsResponse().success().data(data); |
| | | |
| | | return new FebsResponse().fail().message(MessageSourceUtils.getString("box_surprise_002")); |
| | | ActiveNftListVo data = dappWalletService.boxSurprise(); |
| | | return new FebsResponse().success().data(data); |
| | | // return new FebsResponse().fail().message(MessageSourceUtils.getString("box_surprise_002")); |
| | | } |
| | | |
| | | @ApiOperation(value = "激活卡牌", notes = "激活卡牌") |
| | |
| | | log.error("发放卡牌错误", ex); |
| | | } |
| | | }).start(); |
| | | |
| | | ChainService.getInstance(ChainEnum.BSC_TFC.name()).transfer(AppContants.DESTROY_ADDRESS, finalFundFlow.getTargetAmount()); |
| | | return; |
| | | } |
| | | |
| | |
| | | throw new FebsException(MessageSourceUtils.getString("nft_active_001")); |
| | | } |
| | | |
| | | |
| | | PriceDto priceDto = new PriceDto(); |
| | | priceDto.setAmount(BigDecimal.ZERO); |
| | | Map<String, BigDecimal> price = calPrice(priceDto); |
| | | DappFundFlowEntity fundFlow = new DappFundFlowEntity(member.getId(), new BigDecimal(activeDto.getCount()), 8, 1, BigDecimal.ZERO, activeDto.getTxHash()); |
| | | |
| | | fundFlow.setTargetAmount(price.get("x").multiply(new BigDecimal(activeDto.getCount()))); |
| | | fundFlow.setNewestPrice(AppContants.NFT_ACTIVE_PRICE.multiply(BigDecimal.valueOf(nftActive.getCount()))); |
| | | dappFundFlowDao.insert(fundFlow); |
| | | |