Commit 15194e11 by xuzhenhao

增加了redis工具库中的方法

1 parent eee9ed37
Showing with 1 additions and 0 deletions
...@@ -476,6 +476,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri ...@@ -476,6 +476,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
log.Println("strList1 : ", strList1) log.Println("strList1 : ", strList1)
//将结果倒序 //将结果倒序
var tempList []string var tempList []string
log.Println(len(strList1))
for i := len(strList1) - 1; i < 0; i -= 2 { for i := len(strList1) - 1; i < 0; i -= 2 {
tempList = append(tempList, strList1[i-1]) tempList = append(tempList, strList1[i-1])
tempList = append(tempList, strList1[i]) 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!