| | |
| | | if ("usdt".equals(recharge.getSymbol())) { |
| | | double amount1 = recharge.getVolume(); |
| | | |
| | | // Wallet wallet = new Wallet(); |
| | | // wallet = walletService.saveWalletByPartyId(recharge.getPartyId()); |
| | | Wallet wallet = new Wallet(); |
| | | wallet = walletService.saveWalletByPartyId(recharge.getPartyId()); |
| | | // |
| | | // double amount_before = wallet.getMoney().doubleValue(); |
| | | double amount_before = wallet.getMoney().doubleValue(); |
| | | // |
| | | // walletService.update(wallet.getUserId(), amount1); |
| | | walletService.update(wallet.getUserId(), amount1); |
| | | |
| | | CapitaltWallet capitaltWallet = capitaltWalletService.getOne(new LambdaQueryWrapper<>(CapitaltWallet.class) |
| | | .eq(CapitaltWallet::getUserId, recharge.getPartyId()).last(" limit 1 ")); |
| | | double amount_before = capitaltWallet.getMoney().doubleValue(); |
| | | capitaltWalletService.update(capitaltWallet,amount1); |
| | | // CapitaltWallet capitaltWallet = capitaltWalletService.getOne(new LambdaQueryWrapper<>(CapitaltWallet.class) |
| | | // .eq(CapitaltWallet::getUserId, recharge.getPartyId()).last(" limit 1 ")); |
| | | // double amount_before = capitaltWallet.getMoney().doubleValue(); |
| | | // capitaltWalletService.update(capitaltWallet,amount1); |
| | | |
| | | // 保存资金日志 |
| | | MoneyLog moneyLog = new MoneyLog(); |
| | |
| | | |
| | | |
| | | |
| | | if (!"ETH".equals(recharge.getSymbol().toUpperCase())) { |
| | | ChannelBlockchain channel = channelBlockchainService.findByNameAndCoinAndAdd(recharge.getBlockchainName(), |
| | | recharge.getSymbol(), recharge.getChannelAddress()); |
| | | |
| | | if (channel == null || !recharge.getSymbol().toUpperCase().equals(channel.getCoin().toUpperCase())) { |
| | | throw new YamiShopBindException("充值链错误"); |
| | | } |
| | | } |
| | | // if (!"ETH".equals(recharge.getSymbol().toUpperCase())) { |
| | | // ChannelBlockchain channel = channelBlockchainService.findByNameAndCoinAndAdd(recharge.getBlockchainName(), |
| | | // recharge.getSymbol(), recharge.getChannelAddress()); |
| | | // |
| | | // if (channel == null || !recharge.getSymbol().toUpperCase().equals(channel.getCoin().toUpperCase())) { |
| | | // throw new YamiShopBindException("充值链错误"); |
| | | // } |
| | | // } |
| | | |
| | | |
| | | double recharge_limit_min = Double.valueOf(sysparaService.find("recharge_limit_min").getSvalue()); |