Commit 47f3ac7b by xuzhenhao

增加了redis工具库中的方法

1 parent 20d56b2e
Showing with 2 additions and 2 deletions
......@@ -399,7 +399,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
return nil, "105201", err
}
log.Println(score)
scoreString := "(" + score.(string)
scoreString := "(" + string(score.([]uint8))
// 获取当前用户前x位和后x位的排名数据
var prerankIndex int
var nextrankIndex int
......@@ -449,7 +449,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
}
if len(strList2) == 0 {
strList = append(strList, "ice_gametop:uid:"+uid+":gtid:"+gtid+":gid:"+gid+":toptype:"+toptype+":mykey")
strList = append(strList, score.(string))
strList = append(strList, string(score.([]uint8)))
if len(strList1) != 0 {
strList = append(strList, strList1...)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!