周礼包根据不同等级推不同的礼包
parent
74463746c4
commit
837174f0cd
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue