diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java index a42d2f37..8f935138 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java @@ -258,7 +258,7 @@ public class HotGameServiceImpl implements HotGameService { } private void incGameRankingActivity(HotGameUserCoinUpdate param) { - if (param.getCoin() > 0) { + if (param.getType() != null && param.getType() == 2 && param.getCoin() > 0) { RankingDataUpdateCmd receiverCmd = new RankingDataUpdateCmd(); receiverCmd.setUserId(DataTypeUtils.toLong(param.getUid())); receiverCmd.setUserSex(1); @@ -284,7 +284,7 @@ public class HotGameServiceImpl implements HotGameService { cost = BigDecimal.valueOf(5000L); } - if (request.getCoin() >= cost.longValue()) { + if (request.getType() != null && request.getType() == 2 && request.getCoin() >= cost.longValue()) { UserProfileDTO userProfile = userProfileAppConvertor.toUserProfileDTO( userProfileGateway.getByUserId(DataTypeUtils.toLong(request.getUid())));