From 6c4f0b0cd342424dc9c10f1e5ce407a3a39eb486 Mon Sep 17 00:00:00 2001 From: poiuty Date: Tue, 24 Jan 2023 23:26:34 +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 8f384c1..181e417 100644 --- a/test2/worker.go +++ b/test2/worker.go @@ -57,7 +57,7 @@ func statRoom(room, room_uid, authToken string) { break } - m := string(message) + //m := string(message) input := struct { Action int `json:"action"` @@ -95,7 +95,7 @@ func statRoom(room, room_uid, authToken string) { 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()) continue }