Commit 2cc0a81b by xuzhenhao

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

1 parent 5f557823
Showing with 3 additions and 3 deletions
...@@ -349,9 +349,9 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t ...@@ -349,9 +349,9 @@ func IceGameTopRedisGetSingleUserRankInfo(uid string, gtid string, gid string, t
log.Printf("select db err:", err) log.Printf("select db err:", err)
} }
for i := 0; i < len(strList); i += 2 { for i := 0; i < len(strList); i += 2 {
startIndex := strings.Index(strList[i], "uid:") + 4 // startIndex := strings.Index(strList[i], "uid:") + 4
endIndex := strings.Index(strList[i], ":gtid") // endIndex := strings.Index(strList[i], ":gtid")
currUID := common.Substr2(strList[i], startIndex, endIndex) // currUID := common.Substr2(strList[i], startIndex, endIndex)
igt.UID = uid igt.UID = uid
igt.RankIndex = index igt.RankIndex = index
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!