fix round
parent
e931d53f5c
commit
9d16af655c
|
@ -23,7 +23,7 @@ public class WorldBossTreasureStaticConfig extends AbstractClassStaticConfig {
|
||||||
Map<Integer,Set<SWorldBossTreasureConfig>> idsByPeriodsTmp = new HashMap<>();
|
Map<Integer,Set<SWorldBossTreasureConfig>> idsByPeriodsTmp = new HashMap<>();
|
||||||
config.forEach((id,item)->{
|
config.forEach((id,item)->{
|
||||||
int[] activityIds = item.getActivityId();
|
int[] activityIds = item.getActivityId();
|
||||||
idsByPeriodsTmp.putIfAbsent(activityIds[0], new HashSet<>());
|
idsByPeriodsTmp.putIfAbsent(activityIds[0], new LinkedHashSet<>());
|
||||||
Set<SWorldBossTreasureConfig> ids = idsByPeriodsTmp.get(activityIds[0]);
|
Set<SWorldBossTreasureConfig> ids = idsByPeriodsTmp.get(activityIds[0]);
|
||||||
for(int i=1;i<activityIds.length;i++){
|
for(int i=1;i<activityIds.length;i++){
|
||||||
idsByPeriodsTmp.putIfAbsent(activityIds[i],ids);
|
idsByPeriodsTmp.putIfAbsent(activityIds[i],ids);
|
||||||
|
|
|
@ -10,7 +10,7 @@ import java.util.Map;
|
||||||
public class WorldTreasureReward extends MongoBase {
|
public class WorldTreasureReward extends MongoBase {
|
||||||
|
|
||||||
private int createTime; //取当天零点 根据其可以推算出期数。
|
private int createTime; //取当天零点 根据其可以推算出期数。
|
||||||
private int round;
|
private int round=1;
|
||||||
private int score;
|
private int score;
|
||||||
private Map<Integer,Integer> rewardStatusMap = new HashMap<>(); //领取状态 1:表示领取基础奖励 2:表示领取额外奖励。
|
private Map<Integer,Integer> rewardStatusMap = new HashMap<>(); //领取状态 1:表示领取基础奖励 2:表示领取额外奖励。
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public class WorldTreasureReward extends MongoBase {
|
||||||
}
|
}
|
||||||
score = 0;
|
score = 0;
|
||||||
rewardStatusMap = new HashMap<>();
|
rewardStatusMap = new HashMap<>();
|
||||||
|
this.round = round;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue