Commit c6453bed by xuzhenhao

增加了redis工具库中的方法

1 parent fe4d1c72
Showing with 2 additions and 2 deletions
...@@ -422,14 +422,14 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri ...@@ -422,14 +422,14 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
} }
} }
if rankIndex-prerankIndex < 0 { if rankIndex-prerankIndex < 0 {
prerankIndex = 0 prerankIndex = rankIndex
resIndex = rankIndex + 1 resIndex = rankIndex + 1
} else { } else {
resIndex = prerankIndex + 1 resIndex = prerankIndex + 1
prerankIndex = rankIndex - prerankIndex prerankIndex = rankIndex - prerankIndex
} }
nextrankIndex = rankIndex + nextrankIndex nextrankIndex = rankIndex + nextrankIndex
log.Println("nextrankIndex:", nextrankIndex, "prerankIndex:", prerankIndex) log.Println("nextrankIndex:", nextrankIndex, "prerankIndex:", prerankIndex, "sorceorder:", sorceorder)
// 排序 // 排序
var strList, strList1, strList2 []string var strList, strList1, strList2 []string
if sorceorder == "1" { if sorceorder == "1" {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!