车迟发奖bug修改,排行榜第一名bug修改
parent
886ac0c143
commit
2b0607a26a
|
@ -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));
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue