增加新的冲榜信息
parent
e3dc7a8f0b
commit
96da2d8e28
|
|
@ -350,6 +350,11 @@ public class RedisKey {
|
|||
|
||||
public static final String SOUL_SEAL_RANK = "SOUL_SEAL_RANK";//魂印排行榜
|
||||
|
||||
public static final String MONEY_RANK = "MONEY_RANK";//现金点券消耗排行榜
|
||||
public static final String HERO_RANK = "HERO_RANK";//英雄召唤排行榜
|
||||
public static final String FABAO_RANK = "FABAO_RANK";//法宝召唤啊排行榜
|
||||
public static final String XUNXIAN_RANK = "XUNXIAN_RANK";//寻仙召唤排行榜
|
||||
|
||||
/**
|
||||
* 助战
|
||||
* 第一种
|
||||
|
|
|
|||
|
|
@ -85,6 +85,23 @@ public class OpenServerCompeteRankActivity extends AbstractActivity {
|
|||
rank.addRank(user.getId(),"", scoreCompute);
|
||||
}
|
||||
|
||||
/**
|
||||
* 英雄代金券消耗排行
|
||||
* @param user
|
||||
*/
|
||||
public static void moneyHandle(User user,int money){
|
||||
// if(money <= 0){
|
||||
// return;
|
||||
// }
|
||||
// if(isOpen(RankEnum.MONEY_RANK.getType())){
|
||||
//
|
||||
// }
|
||||
// AbstractRank rank = RankContext.getRankEnum(RankEnum.MONEY_RANK.getType());
|
||||
//// rank.get
|
||||
// int scoreCompute = heroStarCompute(user);
|
||||
// rank.addRank(user.getId(),"", scoreCompute);
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算英雄星级评分
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
package com.ljsd.jieling.logic.dao;
|
||||
|
||||
public class ChongRankInfo {
|
||||
private int chongRankScore;//冲榜活动相关累计次数
|
||||
private long chongRankTime;//冲榜活动次数重置时间
|
||||
|
||||
public int getChongRankScore() {
|
||||
return chongRankScore;
|
||||
}
|
||||
|
||||
public void setChongRankScore(int chongRankScore) {
|
||||
this.chongRankScore = chongRankScore;
|
||||
}
|
||||
|
||||
public long getChongRankTime() {
|
||||
return chongRankTime;
|
||||
}
|
||||
|
||||
public void setChongRankTime(long chongRankTime) {
|
||||
this.chongRankTime = chongRankTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -217,6 +217,7 @@ public class PlayerManager extends MongoBase {
|
|||
private int treasureReplica; //宝物副本
|
||||
private int exploreKillTotalNum; //探索杀敌总数
|
||||
private long lastWholeLifeTime;//最近一次领取终身卡的时间
|
||||
private Map<Integer,ChongRankInfo> chongRankInfos = new HashMap<Integer,ChongRankInfo>();//冲榜活动相关信息
|
||||
|
||||
private Map<Integer, Integer> gemDrawCountMap = new HashMap<>();// 命格抽卡次数记录
|
||||
|
||||
|
|
@ -1549,4 +1550,14 @@ public class PlayerManager extends MongoBase {
|
|||
this.trainingArchitectureMap.put(trainingArchitecture.getId(),trainingArchitecture);
|
||||
updateString("trainingArchitectureMap", this.trainingArchitectureMap);
|
||||
}
|
||||
|
||||
|
||||
public Map<Integer, ChongRankInfo> getChongRankInfos() {
|
||||
return chongRankInfos;
|
||||
}
|
||||
|
||||
public void setChongRankInfos(Map<Integer, ChongRankInfo> chongRankInfos) {
|
||||
this.chongRankInfos = chongRankInfos;
|
||||
updateString("chongRankInfos", this.chongRankInfos);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ public enum RankEnum {
|
|||
EQUIP_SCORE_RANK(102, RedisKey.EQUIP_SCORE_RANK,MainLevelRank::new,false),//装备排行榜
|
||||
SOUL_SEAL_RANK(103, RedisKey.SOUL_SEAL_RANK,MainLevelRank::new,false),//魂印排行榜
|
||||
NEW_ARENA_RANK(105, RedisKey.NEW_ARENA_RANK, NewArenaRank::new, true),//新竞技场排行榜
|
||||
MONEY_RANK(201,RedisKey.MONEY_RANK,MainLevelRank::new,false),//现金点券消耗排行榜
|
||||
HERO_RANK(202,RedisKey.HERO_RANK,MainLevelRank::new,false),//英雄召唤排行榜
|
||||
FABAO_RANK(203,RedisKey.FABAO_RANK,MainLevelRank::new,false),//法宝召唤排行榜
|
||||
XUNXIAN_RANK(204,RedisKey.XUNXIAN_RANK,MainLevelRank::new,false),//现寻仙招募排行榜
|
||||
|
||||
//***************************************** 以下开服冲榜活动保留数据排行榜 *****************************************//
|
||||
BACK_HERO_STAR_RANK(100101,"BACK_HERO_STAR_RANK",MainLevelRank::new,false),//英雄星级排行榜
|
||||
|
|
|
|||
Loading…
Reference in New Issue