Commit 162a8c15 by xuzhenhao

增加了redis工具库中的方法

1 parent 47f3ac7b
Showing with 3 additions and 3 deletions
......@@ -456,7 +456,7 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
} else {
strList = append(strList, strList2...)
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...)
}
......@@ -479,14 +479,14 @@ func IceGameTopRedisGetSingleUserRangeRankInfo(uid string, gtid string, gid stri
}
if len(strList1) == 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(strList2) != 0 {
strList = append(strList, strList2...)
}
} else {
strList = append(strList, strList1...)
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(strList2) != 0 {
strList = append(strList, strList2...)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!