Commit eee9ed37 by xuzhenhao

增加了redis工具库中的方法

1 parent 84dfb010
Showing with 2 additions and 2 deletions
......@@ -448,7 +448,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
}
//将结果倒序
var tempList []string
for i := len(strList2); i < 0; i -= 2 {
for i := len(strList2) - 1; i < 0; i -= 2 {
tempList = append(tempList, strList2[i-1])
tempList = append(tempList, strList2[i])
}
......@@ -476,7 +476,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
log.Println("strList1 : ", strList1)
//将结果倒序
var tempList []string
for i := len(strList1); i < 0; i -= 2 {
for i := len(strList1) - 1; i < 0; i -= 2 {
tempList = append(tempList, strList1[i-1])
tempList = append(tempList, strList1[i])
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!