罗浮争锋七天未登录玩家不发奖
parent
0eed791c3d
commit
f6199ba471
|
|
@ -67,10 +67,8 @@ public class GetWorldArenaInfoRequestHandler extends BaseHandler<WorldProto.GetW
|
|||
if(diff>setting.getRestTime()[0]&&diff<setting.getRestTime()[1]){
|
||||
WorldProto.GetWorldArenaInfoRequest.Builder builder1 = WorldProto.GetWorldArenaInfoRequest.newBuilder(proto);
|
||||
builder1.setIsPro(true);
|
||||
proto = builder1.build();
|
||||
}
|
||||
|
||||
|
||||
int crossGroup = GlobleSystemLogic.getInstence().getCrossGroup();
|
||||
builder.setIsGroup(crossGroup==-1?0:1);
|
||||
AbstractRank rank = RankContext.getRankEnum(RankEnum.CROSS_SERVICE_ARENA.getType());
|
||||
|
|
|
|||
|
|
@ -756,11 +756,14 @@ public class ArenaLogic {
|
|||
|
||||
Set<ZSetOperations.TypedTuple<String>> rankInfo= rank.getRankByKey(String.valueOf(crossGroup), 0, -1);
|
||||
int index = 0;
|
||||
Iterator<ZSetOperations.TypedTuple<String>> iterator = rankInfo.iterator();
|
||||
while (iterator.hasNext()){
|
||||
for (ZSetOperations.TypedTuple<String> stringTypedTuple : rankInfo) {
|
||||
int uid = Integer.parseInt(stringTypedTuple.getValue());
|
||||
CSPlayer player = CrossServiceLogic.getPlayerByRedis(uid);
|
||||
index++;
|
||||
ZSetOperations.TypedTuple<String> next = iterator.next();
|
||||
int uid = Integer.parseInt(next.getValue());
|
||||
if (player == null || TimeUtils.now() > (player.getOffLineTime()+TimeUtils.WEEK)){
|
||||
LOGGER.error("罗浮争锋发奖,玩家未登陆时间超过七天,不予发奖,uid:{},rank:{}",uid,index);
|
||||
continue;
|
||||
}
|
||||
if (uid < 1000) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -808,9 +811,6 @@ public class ArenaLogic {
|
|||
public void e2b(){
|
||||
if(getState() != BATTLE_STATE){
|
||||
LOGGER.info("罗浮争霸:转到战斗状态,nowstate:{} to BATTLE_STATE",getState());
|
||||
// if(getState()!=0){
|
||||
// initRank();
|
||||
// }
|
||||
getInstance().setState(BATTLE_STATE);
|
||||
initRank();
|
||||
Map<Integer, ISession> sessionMap = OnlineUserManager.sessionMap;
|
||||
|
|
@ -850,6 +850,7 @@ public class ArenaLogic {
|
|||
}
|
||||
return robotIds;
|
||||
}
|
||||
|
||||
//初始化机器人信息
|
||||
private void initRank(){
|
||||
int crossGroup = GlobleSystemLogic.getInstence().getCrossGroup();
|
||||
|
|
|
|||
Loading…
Reference in New Issue