test callback

This commit is contained in:
shoopea 2020-02-05 11:21:36 +08:00
parent 31c270cf3a
commit b1431e9769

View File

@ -316,6 +316,9 @@ func SQLCWMsgWorker(id int, msgs <-chan ChatWarsMessage, objIds chan<- int64) {
if len(m.Callbacks) != 0 { if len(m.Callbacks) != 0 {
for _, c := range m.Callbacks { for _, c := range m.Callbacks {
log.Printf("SQLCWMsgWorker[%d] (%d) : Callback : %s : %s\n", id, m.ID64, c.Name, string(c.Data)) log.Printf("SQLCWMsgWorker[%d] (%d) : Callback : %s : %s\n", id, m.ID64, c.Name, string(c.Data))
if c.Name == `📯Arena` {
log.Printf("SQLCWMsgWorker[%d] (%d) : Callback : Arena spotted\n")
}
} }
} }
objId, err := addObjMsg(m) objId, err := addObjMsg(m)