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
}
}
if rankIndex-prerankIndex < 0 {
prerankIndex = 0
prerankIndex = rankIndex
resIndex = rankIndex + 1
} else {
resIndex = prerankIndex + 1
prerankIndex = rankIndex - prerankIndex
}
nextrankIndex = rankIndex + nextrankIndex
log.Println("nextrankIndex:", nextrankIndex, "prerankIndex:", prerankIndex)
log.Println("nextrankIndex:", nextrankIndex, "prerankIndex:", prerankIndex, "sorceorder:", sorceorder)
// 排序
var strList, strList1, strList2 []string
if sorceorder == "1" {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!