Commit 4b0a25fc by xuzhenhao

增加了redis工具库中的方法

1 parent a441432e
Showing with 2 additions and 2 deletions
......@@ -432,7 +432,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
log.Println("nextrankIndex:", nextrankIndex, "prerankIndex:", prerankIndex, "sorceorder:", sorceorder)
// 排序
var strList, strList1, strList2 []string
if sorceorder == "1" {
if sorceorder == "0" {
if nextrankIndex != 0 {
strList1, err = RedisZRangeByScore(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, scoreString, "+inf", "true", 0, nextrankIndex)
if err != nil {
......@@ -469,7 +469,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
}
}
} else if sorceorder == "0" {
} else if sorceorder == "1" {
if nextrankIndex != 0 {
strList1, err = RedisZRangeByScore(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, scoreString, "+inf", "true", 0, prerankIndex)
log.Println("strList1 : ", strList1)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!