if 2 []byte #3

This commit is contained in:
ycc 2022-12-17 13:00:28 +01:00
parent e7c685b8aa
commit 92f743b595

View File

@ -55,9 +55,9 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe
for _, redismsg := range res {
println(redismsg.Score)
val := redismsg.Member
test := val.([]byte)
test := val.(string)
var usrmsg meowlib.PackedUserMessage
err := proto.Unmarshal(test, &usrmsg)
err := proto.Unmarshal([]byte(test), &usrmsg)
if err != nil {
return nil, err
}