Commit 7247b1d2 by xuzhenhao

增加了返回个人排行信息的时候可以看到前后玩家信息的功能

1 parent 10edf9c6
Showing with 3 additions and 3 deletions
...@@ -294,9 +294,9 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t ...@@ -294,9 +294,9 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
var sorterr error var sorterr error
if sorceorder == "0" { if sorceorder == "0" {
strList, sorterr = RedisSort(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, prerankIndex, nextrankIndex) strList, sorterr = RedisSort(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, 0, -1)
} else if sorceorder == "1" { } else if sorceorder == "1" {
strList, sorterr = RedisReverseSort(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, prerankIndex, nextrankIndex) strList, sorterr = RedisReverseSort(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, 0, -1)
} }
if sorterr != nil { if sorterr != nil {
log.Println("RedisSort err[%v]", sorterr) log.Println("RedisSort err[%v]", sorterr)
...@@ -435,7 +435,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri ...@@ -435,7 +435,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
log.Println("rank has no data") log.Println("rank has no data")
} }
igt = make([]IGT, len(strList)/2) igt = make([]*IGT, len(strList)/2)
index := 1 index := 1
var resultstr string var resultstr string
var valuecount = 2 var valuecount = 2
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!