新版仿ok交易所-后端
1
zj
2025-10-02 ad597f433afb0e4ead989aa8a30133fe40d3b98c
trading-order-service/src/main/java/com/yami/trading/service/impl/WalletServiceImpl.java
@@ -180,12 +180,12 @@
        wallet.setMoney(wallet.getMoney().add(money));
        if(wallet.getMoney().compareTo(BigDecimal.ZERO) < 0){
            wallet.setMoney(BigDecimal.ZERO);
        }
        wallet.setUpdateTime(now);
        if (wallet.getMoney().doubleValue() <= 0) {
            throw new YamiShopBindException("余额不足");
        }
        wallet.setUpdateTime(now);
        /*if (wallet.getMoney().doubleValue() < 0) {
            throw new YamiShopBindException("余额不足");
        }*/
        updateById(wallet);
        // 账变日志
        MoneyLog moneyLog = new MoneyLog();