diff --git a/test2/worker.go b/test2/worker.go index 181e417..6416035 100644 --- a/test2/worker.go +++ b/test2/worker.go @@ -57,7 +57,7 @@ func statRoom(room, room_uid, authToken string) { break } - //m := string(message) + fmt.Println(string(message)) input := struct { Action int `json:"action"` @@ -107,7 +107,7 @@ func statRoom(room, room_uid, authToken string) { }{} for _, tip := range tips { - if err := json.Unmarshal([]byte(tip.Data), donate); err != nil { + if err := json.Unmarshal([]byte(tip.Data), &donate); err != nil { fmt.Println(err.Error()) continue }