wzy
2020-11-14 8300dc9c1b386c953befa96a63800143248e9664
src/main/java/com/xcong/excoin/modules/coin/controller/Trc20Controller.java
@@ -63,6 +63,9 @@
        memberWalletCoinDao.updateWalletBalance(wallet.getId(), trcRechargeDto.getNum(), null, null);
        TrcAddressEntity trcAddress = trcAddressDao.selectSrcAddressByMemberId(memberId);
        if (trcAddress == null) {
            return Result.fail("充值失败, 该用户无充值地址");
        }
        MemberCoinChargeEntity charge = new MemberCoinChargeEntity();
        charge.setAddress(trcAddress.getAddress());
        charge.setAmount(trcRechargeDto.getNum());
@@ -89,6 +92,7 @@
    @PostMapping(value = "/withdrawTrcAmount")
    public Result withdrawTrcAmount(@RequestBody TrcWithdrawDto trcWithdrawDto) {
        log.info("提币审核接口参数:{}", trcWithdrawDto);
        if (!CoinTypeEnum.USDT.name().equals(trcWithdrawDto.getSymbol())) {
            return Result.fail("币种错误");
        }