| | |
| | | memberCoinWithdrawMapper.updateById(selectById); |
| | | |
| | | if ("TRC20".equals(selectById.getLabel())) { |
| | | String orderNo = generateOrderNo(memberId); |
| | | TRC20ApiUtils.coinApply(orderNo, memberId.toString(), selectById.getSymbol(), selectById.getAmount().toPlainString(), selectById.getAddress()); |
| | | selectById.setTag(orderNo); |
| | | memberCoinWithdrawMapper.updateById(selectById); |
| | | Thread thread = new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | log.info("远程调用TRC执行:{}", selectById.getId()); |
| | | String orderNo = generateOrderNo(memberId); |
| | | TRC20ApiUtils.coinApply(orderNo, memberId.toString(), selectById.getSymbol(), selectById.getAmount().toPlainString(), selectById.getAddress()); |
| | | selectById.setTag(orderNo); |
| | | memberCoinWithdrawMapper.updateById(selectById); |
| | | } |
| | | }); |
| | | thread.start(); |
| | | } |
| | | |
| | | MemberEntity memberEntity = memberMapper.selectById(memberId); |