Commit da4cfdbc by xuzhenhao

修复了返回索引错误的问题

1 parent db1bb6e2
Showing with 2 additions and 2 deletions
......@@ -428,9 +428,9 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
// 排序
var strList []string
if sorceorder == "0" {
if sorceorder == "1" {
strList, err = RedisSort(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, prerankIndex, nextrankIndex)
} else if sorceorder == "1" {
} else if sorceorder == "0" {
strList, err = RedisReverseSort(redisConn, "sortset:gtid:"+gtid+":gid:"+gid+":toptype:"+toptype, prerankIndex, nextrankIndex)
}
if err != nil {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!