back_recharge
lvxinran 2019-12-24 16:01:03 +08:00
commit dbd1ce04a6
1 changed files with 2 additions and 2 deletions

View File

@ -1236,7 +1236,7 @@ public class ChampionshipLogic {
int myUid = session.getUid();
CommonProto.ArenaEnemy myInfo = null;
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);
for (ZSetOperations.TypedTuple<String> item : arenaRankInfo) {
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();
if(myRank != -1){
myInfo=getEnemyInfo(myUid, myRank,0,0);