Update worker.go

This commit is contained in:
poiuty 2023-01-24 23:26:34 +03:00
parent d049858f44
commit 6c4f0b0cd3

View file

@ -57,7 +57,7 @@ func statRoom(room, room_uid, authToken string) {
break break
} }
m := string(message) //m := string(message)
input := struct { input := struct {
Action int `json:"action"` Action int `json:"action"`
@ -95,7 +95,7 @@ func statRoom(room, room_uid, authToken string) {
Data string `json:"data"` Data string `json:"data"`
}{} }{}
if err := json.Unmarshal([]byte(m), &tips); err != nil { if err := json.Unmarshal([]byte(input.Messages), &tips); err != nil {
fmt.Println(err.Error()) fmt.Println(err.Error())
continue continue
} }