diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/GameBaishunServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/GameBaishunServiceImpl.java index 2833c3c9..2b5c2236 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/GameBaishunServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/GameBaishunServiceImpl.java @@ -174,8 +174,8 @@ public class GameBaishunServiceImpl implements GameBaishunService { .build()); BigDecimal cost = enumConfigCacheService - .getValueBigDecimal(EnumConfigKey.GAME_BROADCAST_AMOUNT, sysOrigin); - if (cost.compareTo(BigDecimal.ZERO) <= 0) { + .getValueBigDecimal(EnumConfigKey.GAME_BROADCAST_AMOUNT, sysOrigin) ; + if (cost == null || cost.compareTo(BigDecimal.ZERO) <= 0) { cost = BigDecimal.valueOf(5000L); }