| | |
| | | |
| | | // 激活卡牌 |
| | | if (fundFlow.getType() == 8) { |
| | | DappFundFlowEntity finalFundFlow = fundFlow; |
| | | DappMemberEntity member = dappMemberService.getById(fundFlow.getMemberId()); |
| | | |
| | | new Thread(() -> { |
| | | try { |
| | | int count = finalFundFlow.getAmount().intValue(); |
| | | String token = null; |
| | | while (count > 0) { |
| | | token = ChainService.getInstance(ChainEnum.BSC_NFT_SDC.name()).safeMintNFT(member.getAddress()); |
| | | Thread.sleep(5000); |
| | | count--; |
| | | } |
| | | finalFundFlow.setToHash(token); |
| | | dappFundFlowDao.updateById(finalFundFlow); |
| | | } catch (Exception ex) { |
| | | ex.printStackTrace(); |
| | | log.error("发放卡牌错误", ex); |
| | | } |
| | | }).start(); |
| | | return; |
| | | } |
| | | |