百顺游戏消耗类型处理
This commit is contained in:
parent
a06980d6f5
commit
77997f8223
@ -258,7 +258,7 @@ public class HotGameServiceImpl implements HotGameService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void incGameRankingActivity(HotGameUserCoinUpdate param) {
|
private void incGameRankingActivity(HotGameUserCoinUpdate param) {
|
||||||
if (param.getCoin() > 0) {
|
if (param.getType() != null && param.getType() == 2 && param.getCoin() > 0) {
|
||||||
RankingDataUpdateCmd receiverCmd = new RankingDataUpdateCmd();
|
RankingDataUpdateCmd receiverCmd = new RankingDataUpdateCmd();
|
||||||
receiverCmd.setUserId(DataTypeUtils.toLong(param.getUid()));
|
receiverCmd.setUserId(DataTypeUtils.toLong(param.getUid()));
|
||||||
receiverCmd.setUserSex(1);
|
receiverCmd.setUserSex(1);
|
||||||
@ -284,7 +284,7 @@ public class HotGameServiceImpl implements HotGameService {
|
|||||||
cost = BigDecimal.valueOf(5000L);
|
cost = BigDecimal.valueOf(5000L);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.getCoin() >= cost.longValue()) {
|
if (request.getType() != null && request.getType() == 2 && request.getCoin() >= cost.longValue()) {
|
||||||
UserProfileDTO userProfile = userProfileAppConvertor.toUserProfileDTO(
|
UserProfileDTO userProfile = userProfileAppConvertor.toUserProfileDTO(
|
||||||
userProfileGateway.getByUserId(DataTypeUtils.toLong(request.getUid())));
|
userProfileGateway.getByUserId(DataTypeUtils.toLong(request.getUid())));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user