rank-
parent
eaf1ca45dc
commit
0ed34330e7
|
|
@ -1236,7 +1236,7 @@ public class ChampionshipLogic {
|
||||||
int myUid = session.getUid();
|
int myUid = session.getUid();
|
||||||
CommonProto.ArenaEnemy myInfo = null;
|
CommonProto.ArenaEnemy myInfo = null;
|
||||||
ArenaInfoProto.ChampionGetWorldRankResponse.Builder builder = ArenaInfoProto.ChampionGetWorldRankResponse.newBuilder();
|
ArenaInfoProto.ChampionGetWorldRankResponse.Builder builder = ArenaInfoProto.ChampionGetWorldRankResponse.newBuilder();
|
||||||
if(end<rankEndLine) {
|
if(start<=rankEndLine) {
|
||||||
Set<ZSetOperations.TypedTuple<String>> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK,"", start, end);
|
Set<ZSetOperations.TypedTuple<String>> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK,"", start, end);
|
||||||
for (ZSetOperations.TypedTuple<String> item : arenaRankInfo) {
|
for (ZSetOperations.TypedTuple<String> item : arenaRankInfo) {
|
||||||
String value = item.getValue();
|
String value = item.getValue();
|
||||||
|
|
@ -1253,7 +1253,7 @@ public class ChampionshipLogic {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(myInfo==null && end<=rankEndLine){
|
if(myInfo==null && start<=rankEndLine){
|
||||||
int myRank= RedisUtil.getInstence().getZSetreverseRank(RedisKey.CHAMPION_RANK,"",Integer.toString(myUid)).intValue();
|
int myRank= RedisUtil.getInstence().getZSetreverseRank(RedisKey.CHAMPION_RANK,"",Integer.toString(myUid)).intValue();
|
||||||
if(myRank != -1){
|
if(myRank != -1){
|
||||||
myInfo=getEnemyInfo(myUid, myRank,0,0);
|
myInfo=getEnemyInfo(myUid, myRank,0,0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue