网页支付,青龙战令特殊处理
parent
645352464e
commit
d3098bfa67
|
|
@ -639,12 +639,20 @@ public class BuyGoodsNewLogic {
|
|||
Set<Integer> list = new HashSet<>();
|
||||
// 礼包是否打开
|
||||
NewRechargeInfo rechargeInfo = user.getPlayerInfoManager().getNewRechargeInfo();
|
||||
Map<Integer, SRechargeCommodityNewConfig> configMap = SRechargeCommodityNewConfig.configMap;
|
||||
// 次数,推送,永久礼包一起处理
|
||||
ArrayList<AbstractWelfareBag> welfareBags = new ArrayList<>(rechargeInfo.getPerpetualMap().values());
|
||||
welfareBags.addAll(rechargeInfo.getTimeLimitMap().values());
|
||||
welfareBags.addAll(rechargeInfo.getReceiveMap().values());
|
||||
welfareBags.addAll(rechargeInfo.getPushMap().values());
|
||||
for (AbstractWelfareBag bag : welfareBags) {
|
||||
SRechargeCommodityNewConfig newConfig = configMap.get(bag.getModId());
|
||||
// 青龙战令特殊处理
|
||||
if (newConfig != null && newConfig.getType() == 11){
|
||||
if (user.getPlayerInfoManager().getHadBuyTreasure() == 0){
|
||||
list.add(bag.getModId());
|
||||
}
|
||||
}
|
||||
if(bag.isOpen()){
|
||||
if (bag.getLimit() == 0 || bag.getLimit() > bag.getBuyTimes()){
|
||||
list.add(bag.getModId());
|
||||
|
|
@ -653,7 +661,6 @@ public class BuyGoodsNewLogic {
|
|||
}
|
||||
|
||||
// 走表判断开启的礼包
|
||||
Map<Integer, SRechargeCommodityNewConfig> configMap = SRechargeCommodityNewConfig.configMap;
|
||||
Map<Integer, SGlobalActivity> activityMap = SGlobalActivity.getsGlobalActivityMap();
|
||||
Map<Integer, ActivityMission> missionMap = user.getActivityManager().getActivityMissionMap();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue