| | |
| | | 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()); |
| | |
| | | |
| | | @PostMapping(value = "/withdrawTrcAmount") |
| | | public Result withdrawTrcAmount(@RequestBody TrcWithdrawDto trcWithdrawDto) { |
| | | log.info("提币审核接口参数:{}", trcWithdrawDto); |
| | | if (!CoinTypeEnum.USDT.name().equals(trcWithdrawDto.getSymbol())) { |
| | | return Result.fail("币种错误"); |
| | | } |