Commit abe07f90 by xuzhenhao

增加了redis工具库中的方法

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