update test2

This commit is contained in:
poiuty 2023-01-24 23:23:17 +03:00
parent 073386a6e0
commit d049858f44
2 changed files with 68 additions and 8 deletions

View file

@ -87,17 +87,19 @@ func statRoom(room, room_uid, authToken string) {
timeout = time.Now().Unix() + 60*60
tips := []struct {
Data string `json:"data"`
}{}
if err := json.Unmarshal([]byte(m), &tips); err != nil {
fmt.Println(err.Error())
continue
}
if input.Channel == "room:tip_alert:"+room_uid {
tips := []struct {
Data string `json:"data"`
}{}
if err := json.Unmarshal([]byte(m), &tips); err != nil {
fmt.Println(err.Error())
continue
}
donate := struct {
Name string `json:"to_username"`
From string `json:"from_username"`