fix round

back_recharge
wangyuan 2020-05-26 09:51:43 +08:00
parent e931d53f5c
commit 9d16af655c
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ public class WorldBossTreasureStaticConfig extends AbstractClassStaticConfig {
Map<Integer,Set<SWorldBossTreasureConfig>> idsByPeriodsTmp = new HashMap<>();
config.forEach((id,item)->{
int[] activityIds = item.getActivityId();
idsByPeriodsTmp.putIfAbsent(activityIds[0], new HashSet<>());
idsByPeriodsTmp.putIfAbsent(activityIds[0], new LinkedHashSet<>());
Set<SWorldBossTreasureConfig> ids = idsByPeriodsTmp.get(activityIds[0]);
for(int i=1;i<activityIds.length;i++){
idsByPeriodsTmp.putIfAbsent(activityIds[i],ids);

View File

@ -10,7 +10,7 @@ import java.util.Map;
public class WorldTreasureReward extends MongoBase {
private int createTime; //取当天零点 根据其可以推算出期数。
private int round;
private int round=1;
private int score;
private Map<Integer,Integer> rewardStatusMap = new HashMap<>(); //领取状态 1表示领取基础奖励 2表示领取额外奖励。
@ -24,7 +24,7 @@ public class WorldTreasureReward extends MongoBase {
}
score = 0;
rewardStatusMap = new HashMap<>();
this.round = round;
}
@Override