Update worker.go

This commit is contained in:
poiuty 2023-01-24 23:31:13 +03:00
parent 6c4f0b0cd3
commit 18edef423a

View file

@ -57,7 +57,7 @@ func statRoom(room, room_uid, authToken string) {
break break
} }
//m := string(message) fmt.Println(string(message))
input := struct { input := struct {
Action int `json:"action"` Action int `json:"action"`
@ -107,7 +107,7 @@ func statRoom(room, room_uid, authToken string) {
}{} }{}
for _, tip := range tips { 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()) fmt.Println(err.Error())
continue continue
} }