mirror of
https://github.com/statbate/special-pancake.git
synced 2026-08-11 03:12:42 +00:00
Update worker.go
This commit is contained in:
parent
d049858f44
commit
6c4f0b0cd3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue