fix Integer equals null-safe check for game type comparison
This commit is contained in:
parent
b450ced3cf
commit
cbf955fe14
@ -117,7 +117,7 @@ public class HkysServiceImpl implements GameHkysService {
|
||||
GameListConfig gameConfig = gameListConfigService.getByGameId(
|
||||
param.getGameId(), GameOriginEnum.HKYS.name(), sysOrigin);
|
||||
|
||||
if (param.getType() == 2 && param.getCoin() > 0) {
|
||||
if (Integer.valueOf(2).equals(param.getType()) && param.getCoin() > 0) {
|
||||
gameEventService.onWinEvent(userId, param.getCoin(), GameOriginEnum.HKYS.name(), gameConfig);
|
||||
gameActivityService.handleGameSpendTask(userId, param.getCoin());
|
||||
gameActivityService.incKingGameDaily(userId, param.getCoin(), param.getGameId());
|
||||
|
||||
@ -163,7 +163,7 @@ public class HotGameServiceImpl implements HotGameService {
|
||||
() -> gameListConfigService.getByGameId(param.getGameId(), GameOriginEnum.HOTGAME.name(), sysOrigin)
|
||||
);
|
||||
|
||||
if (param.getType() == 2 && param.getCoin() > 0) {
|
||||
if (Integer.valueOf(2).equals(param.getType()) && param.getCoin() > 0) {
|
||||
gameEventService.onWinEvent(userId, param.getCoin(), GameOriginEnum.HOTGAME.name(), gameConfig);
|
||||
gameActivityService.handleGameSpendTask(userId, param.getCoin());
|
||||
gameActivityService.incKingGameDaily(userId, param.getCoin(), param.getGameId());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user