| | |
| | | return; |
| | | } |
| | | //金额 |
| | | BigDecimal amount = dappFundFlow.getAmount(); |
| | | BigDecimal amount = dappFundFlow.getAmount().setScale(BigDecimal.ROUND_DOWN,6); |
| | | //目标地址 |
| | | Long memberId = dappFundFlow.getMemberId(); |
| | | DappMemberEntity dappMemberEntity = dappMemberDao.selectById(memberId); |
| | |
| | | String address = dappMemberEntity.getAddress(); |
| | | log.info("{}",address); |
| | | BigInteger bigInteger = new BigInteger(Convert.toWei(amount.toString(), Convert.Unit.ETHER).setScale(0).toString()); |
| | | log.info("{}",bigInteger); |
| | | String hash = contractMain.trans(bigInteger,address); |
| | | if(StrUtil.isEmpty(hash)){ |
| | | return; |