fix ambush

This commit is contained in:
shoopea 2019-10-20 20:21:58 +08:00
parent c72622ee79
commit 3bc36fec28

4
msg.go
View File

@ -428,7 +428,7 @@ func parseSubTypeMessageDuelFight(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
}
func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageQuestResultAmbush, error) {
var level float64
//var level float64
cwm := ChatWarsMessageQuestResultAmbush{}
@ -440,7 +440,7 @@ func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp)
lvl, _ := strconv.ParseInt(l[3], 10, 64)
log.Printf("parseSubTypeMessageQuestResultAmbush : lvl : %d\n", lvl)
qty, _ := strconv.ParseInt(l[1], 10, 64)
log.Printf("parseSubTypeMessageQuestResultAmbush : qty : %d\n", lvl)
log.Printf("parseSubTypeMessageQuestResultAmbush : qty : %d\n", qty)
}
cwm.Msg = m
return &cwm, nil