还原灵脉
parent
861fdc6ed8
commit
33d53e2b84
|
|
@ -259,6 +259,13 @@ public class CrossLingmaiLogic {
|
|||
if (crossGroup == -1) {
|
||||
return;
|
||||
}
|
||||
String lockKey = "SERVER_LINGMAI_REWARD_LOCK" + RedisKey.Delimiter_colon + crossGroup;
|
||||
boolean lock = RedisUtil.getInstence().lock(lockKey, TimeUtils.ONE_SECOND * 60);
|
||||
if (!lock) {
|
||||
//没有拿到锁直接返回
|
||||
LOGGER.info("跨服灵脉,奖励结算, key:{} 跨服分组 ={},未获取到锁",lockKey, crossGroup);
|
||||
return;
|
||||
}
|
||||
String rkey1 = RedisUtil.getInstence().getKey(RedisKey.CROSS_LINGMAI_RANK_PERSON, crossGroup + RedisKey.Delimiter_colon + "1",false);
|
||||
String rkey2 = RedisUtil.getInstence().getKey(RedisKey.CROSS_LINGMAI_RANK_PERSON, crossGroup + RedisKey.Delimiter_colon + "2",false);
|
||||
Set<String> arenaRank1 = RedisUtil.getInstence().getReverseZset(rkey1, 0, -1);
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ public class MinuteTask extends Thread {
|
|||
CrossLingmaiLogic.getInstance().sendOccypyReward();
|
||||
}
|
||||
if(hour == 20 && minute == 0){
|
||||
CrossLingmaiLogic.getInstance().sendOccypyReward();
|
||||
CrossLingmaiLogic.getInstance().sendMailReward();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue