mirror of
https://github.com/statbate/special-pancake.git
synced 2026-08-11 03:12:42 +00:00
update
This commit is contained in:
parent
07075823b2
commit
b0ed58805a
1 changed files with 2 additions and 4 deletions
|
|
@ -221,9 +221,7 @@ func xWorker(workerData Info, u url.URL) {
|
|||
|
||||
if input.Channel == "room:enter_leave:"+workerData.Id {
|
||||
type Message struct {
|
||||
Messages []struct {
|
||||
Data string `json:"data"`
|
||||
} `json:"messages,omitempty"`
|
||||
}
|
||||
type Data struct {
|
||||
User struct {
|
||||
|
|
@ -233,7 +231,7 @@ func xWorker(workerData Info, u url.URL) {
|
|||
} `json:"user"`
|
||||
Action string `json:"action"`
|
||||
}
|
||||
topmsg := &Message{}
|
||||
var topmsg []*Message
|
||||
if err := json.Unmarshal(input.Messages, &topmsg); err != nil {
|
||||
fmt.Println(err.Error(), workerData.room)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue