test war report

This commit is contained in:
shoopea 2020-02-09 16:02:32 +08:00
parent f6a3f05ff9
commit e05232e4c9

4
msg.go
View File

@ -175,9 +175,9 @@ func parseSubTypeMessageStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageReportAck, error) { func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageReportAck, error) {
cwm := ChatWarsMessageReportAck{} cwm := ChatWarsMessageReportAck{}
re := regexp.MustCompile(`[.^\n]*\n`) re := regexp.MustCompile(`([.^\n]*)\n`)
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) { for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) {
log.Printf("parseSubTypeMessageReport : Extra[%d] : %s\n", i, l[0]) log.Printf("parseSubTypeMessageReport : Extra[%d] : %d => %s\n", i, len(l[1]), l[1])
} }
/* /*