fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderServiceImpl.java
@@ -420,7 +420,12 @@ } if (pay.getHongBaoPrice() != null && pay.getHongBaoPrice().compareTo(new BigDecimal(0)) > 0) { BigDecimal money = redPackBalanceService.getBalance(uid); BigDecimal money = null; try { money = redPackBalanceService.getBalance(uid); } catch (RedPackBalanceException e) { throw new BanLiShopOrderException(25, "红包功能异常"); } if (money.compareTo(pay.getHongBaoPrice()) < 0) { throw new BanLiShopOrderException(24, "红包余额不足"); }