From 18edef423a95f03bfd46163334607f754d6ffe6a Mon Sep 17 00:00:00 2001 From: poiuty Date: Tue, 24 Jan 2023 23:31:13 +0300 Subject: [PATCH] Update worker.go --- test2/worker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }