fix
Hentua
2024-02-19 d188e9fa2f3ff0a099df4233f7fc2b6be8305937
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallMemberWalletServiceImpl.java
@@ -196,6 +196,10 @@
                BigDecimal balance = (BigDecimal) declaredField.get(wallet);
                if (amount.compareTo(balance) > 0) {
                    if (map == null) {
                        return 2;
                    }
                    // 判断 赠送积分,如果剩下赠送积分不等于0且小于amount, 则扣除所有赠送积分
                    if ("score".equals(field)) {
                        if (balance.compareTo(BigDecimal.ZERO) == 0) {