活动事件
parent
d3636636ca
commit
cff3b4acb8
|
@ -70,9 +70,7 @@ public class ActivityLogic {
|
|||
Map<Integer, SGlobalActivity> sGlobalActivityMap = SGlobalActivity.getsGlobalActivityMap();
|
||||
for (SGlobalActivity sGlobalActivity : sGlobalActivityMap.values()) {
|
||||
int time = sGlobalActivity.getTime();
|
||||
if(ActivityTypeEnum.getActicityCacheSize()==0){//init cache
|
||||
ActivityTypeEnum.getActicityType(sGlobalActivity.getId());
|
||||
}
|
||||
ActivityTypeEnum.getActicityType(sGlobalActivity.getId());
|
||||
if (time == 2) {
|
||||
continue;
|
||||
}
|
||||
|
@ -943,7 +941,7 @@ public class ActivityLogic {
|
|||
int start = 0;
|
||||
int maxSize = SGameSetting.getGameSetting().getShowRank();
|
||||
List<CommonProto.ExpertInfo> expertInfos = new LinkedList<>();
|
||||
Set<ZSetOperations.TypedTuple<String>> rankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.FORCE_RANK, Integer.toString(acitvityId), 0, maxSize - 1);
|
||||
Set<ZSetOperations.TypedTuple<String>> rankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.EXPERT_RANK, Integer.toString(acitvityId), 0, maxSize - 1);
|
||||
for (ZSetOperations.TypedTuple<String> item : rankInfo) {
|
||||
String value = item.getValue();
|
||||
int score = item.getScore().intValue();
|
||||
|
|
Loading…
Reference in New Issue