| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.web3j.utils.Convert; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.BigInteger; |
| | |
| | | @Override |
| | | public void bnbTransferTest(Long id) { |
| | | DappFundFlowEntity dappFundFlow = dappFundFlowDao.selectById(id); |
| | | if(ObjectUtil.isEmpty(dappFundFlow)){ |
| | | return; |
| | | } |
| | | //用户已经加入动能队列 |
| | | DappSystemProfit dappSystemProfit = dappSystemProfitDao.selectById(dappFundFlow.getSystemProfitId()==null ? 0L : dappFundFlow.getSystemProfitId()); |
| | | if(ObjectUtil.isEmpty(dappSystemProfit)){ |
| | | return; |
| | | } |
| | | if(ObjectUtil.isEmpty(dappFundFlow)){ |
| | | return; |
| | | } |
| | | //金额 |
| | |
| | | } |
| | | String address = dappMemberEntity.getAddress(); |
| | | log.info("{}",address); |
| | | String hash = contractMain.trans(new BigInteger(amount.toString()),address); |
| | | BigInteger bigInteger = new BigInteger(Convert.toWei(amount.toString(), Convert.Unit.ETHER).setScale(0).toString()); |
| | | String hash = contractMain.trans(bigInteger,address); |
| | | if(StrUtil.isEmpty(hash)){ |
| | | return; |
| | | } |