罗浮,第一次机器人删除
parent
9295289b88
commit
b019268a95
|
|
@ -305,7 +305,7 @@ public class RedisKey {
|
|||
public static final String LUOFU_ARENA_MY_PRON = "LUOFU_ARENA_MY_PRON";//我自己的膜拜信息
|
||||
public static final String LUOFU_ARENA_RRECORD = "LUOFU_ARENA_RRECORD";//罗浮战斗记录
|
||||
public static final String LUOFU_REGISTER_PLAYER = "LUOFU_REGISTER_PLAYER";//罗浮报名玩家信息
|
||||
public static final String LUOFU_RANK_FIRST_MARK = "LUOFU_RANK_FIRST_MARK";//罗浮第一次初始化排行榜标记
|
||||
// public static final String LUOFU_RANK_FIRST_MARK = "LUOFU_RANK_FIRST_MARK";//罗浮第一次初始化排行榜标记
|
||||
|
||||
public static final String GUILD_SERVERID = "GUILD_SERVERID";
|
||||
public static final String CROSS_RANK_UPDATE = "CROSS_RANK_UPDATE";
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class GetWorldArenaInfoRequestHandler extends BaseHandler<WorldProto.GetW
|
|||
AbstractRank rank = RankContext.getRankEnum(RankEnum.CROSS_SERVICE_ARENA.getType());
|
||||
int type = proto.getType();
|
||||
// 第一次初始化排行榜检测
|
||||
LuofuLogic.getInstance().firstInitRank();
|
||||
// LuofuLogic.getInstance().firstInitRank();
|
||||
//获取我的排名
|
||||
CommonProto.ArenaInfo.Builder arenaInfo = CommonProto.ArenaInfo.newBuilder();
|
||||
Integer registerType = LuofuLogic.getRegisterType(user.getId());
|
||||
|
|
|
|||
|
|
@ -90,10 +90,10 @@ public class LuofuLogic {
|
|||
return INIT_RANK;//初始化排行榜阶段
|
||||
}
|
||||
else if (now >= startTime + registerInterval + initRankInterval && now < startTime + registerInterval + initRankInterval + fightInterval){
|
||||
return FIGHT;//报名阶段
|
||||
return FIGHT;//战斗阶段
|
||||
}
|
||||
else if (now >= startTime + registerInterval + initRankInterval + fightInterval && now < startTime + registerInterval + initRankInterval + fightInterval + sendRewardInterval){
|
||||
return SENDR_EWARD;//报名阶段
|
||||
return SENDR_EWARD;//发奖阶段
|
||||
}
|
||||
else {
|
||||
return 0;//未在功能时间内
|
||||
|
|
@ -218,20 +218,20 @@ public class LuofuLogic {
|
|||
/**
|
||||
* 第一次初始化排行榜
|
||||
*/
|
||||
public void firstInitRank(){
|
||||
int crossId = CrossServiceLogic.getCrossId();
|
||||
if (crossId == -1){
|
||||
return;
|
||||
}
|
||||
String key = RedisKey.LUOFU_RANK_FIRST_MARK + ":" + crossId;
|
||||
String mark = RedisUtil.getInstence().getObject(key, String.class);
|
||||
if (mark != null){
|
||||
return;
|
||||
}
|
||||
RedisUtil.getInstence().set(key, "1");
|
||||
LOGGER.info("罗浮争锋,第一次初始化排行榜....");
|
||||
TaskKit.scheduleOne(this::initRankRobot, 0);
|
||||
}
|
||||
// public void firstInitRank(){
|
||||
// int crossId = CrossServiceLogic.getCrossId();
|
||||
// if (crossId == -1){
|
||||
// return;
|
||||
// }
|
||||
// String key = RedisKey.LUOFU_RANK_FIRST_MARK + ":" + crossId;
|
||||
// String mark = RedisUtil.getInstence().getObject(key, String.class);
|
||||
// if (mark != null){
|
||||
// return;
|
||||
// }
|
||||
// RedisUtil.getInstence().set(key, "1");
|
||||
// LOGGER.info("罗浮争锋,第一次初始化排行榜....");
|
||||
// TaskKit.scheduleOne(this::initRankRobot, 0);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 罗浮争锋 初始化排行榜机器人信息
|
||||
|
|
|
|||
Loading…
Reference in New Issue