周礼包根据不同等级推不同的礼包

back_recharge
xuexinpeng 2022-03-01 14:48:39 +08:00
parent 74463746c4
commit 837174f0cd
1 changed files with 10 additions and 0 deletions

View File

@ -557,6 +557,16 @@ public class BuyGoodsNewLogic {
} }
} }
} }
//周礼包需求:根据不同的等级推送不同的礼包
if (bag.getType() == RechargeType.perpetual.getType()){
for (String[] strings : bag.getCondition()){
if (strings[0].equals("1")){
if(!judgeOpen(strings,user)){
bag.setOpen(false);
}
}
}
}
}else{ }else{
if(bag.getType() == RechargeType.push.getType() && !bag.isOpen()){ if(bag.getType() == RechargeType.push.getType() && !bag.isOpen()){
user.getPlayerInfoManager().getNewRechargeInfo().removePush(bag.getModId()); user.getPlayerInfoManager().getNewRechargeInfo().removePush(bag.getModId());