车迟发奖bug修改,排行榜第一名bug修改

lvxinran 2020-06-08 22:28:28 +08:00
parent 886ac0c143
commit 2b0607a26a
2 changed files with 2 additions and 2 deletions

View File

@ -75,6 +75,7 @@ public class CarDelayFunction implements FunctionManager {
}); });
for(ZSetOperations.TypedTuple<String> item : guildRangeWithScores){ for(ZSetOperations.TypedTuple<String> item : guildRangeWithScores){
rank++;
String value = item.getValue(); String value = item.getValue();
int guildId = Integer.parseInt(value); int guildId = Integer.parseInt(value);
@ -83,7 +84,6 @@ public class CarDelayFunction implements FunctionManager {
if(guildInfo==null){ if(guildInfo==null){
continue; continue;
} }
rank++;
Collection<Set<Integer>> values = guildInfo.getMembers().values(); Collection<Set<Integer>> values = guildInfo.getMembers().values();
if(userLevelGuildMap.containsKey(guildId)){ if(userLevelGuildMap.containsKey(guildId)){
values.add(usersByGuildId.get(guildId)); values.add(usersByGuildId.get(guildId));

View File

@ -92,7 +92,7 @@ public abstract class AbstractRank implements IRank {
//获取第一名信息 //获取第一名信息
public CommonProto.UserRank.Builder getFirst() throws Exception { public CommonProto.UserRank.Builder getFirst() throws Exception {
Set<ZSetOperations.TypedTuple<String>> rankByKey = getRankByKey("", 0, 1); Set<ZSetOperations.TypedTuple<String>> rankByKey = getRankByKey("", 0, 0);
CommonProto.UserRank.Builder builder = CommonProto.UserRank.newBuilder(); CommonProto.UserRank.Builder builder = CommonProto.UserRank.newBuilder();
if(rankByKey.size()!=1){ if(rankByKey.size()!=1){
return builder; return builder;