This commit is contained in:
shoopea 2020-02-09 16:07:00 +08:00
parent 0e421b05f5
commit f8487273ae

3
msg.go
View File

@ -175,8 +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{}
log.Printf("parseSubTypeMessageReport : Extra : %s\n", r.ReplaceAllString(m.Text, "${Extra}"))
re := regexp.MustCompile(`([.^\n]+)`) re := regexp.MustCompile(`([.^\n]+)`)
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) { for i, l := range re.FindAllStringSubmatch(, -1) {
log.Printf("parseSubTypeMessageReport : Extra[%d] : %v\n", i, l) log.Printf("parseSubTypeMessageReport : Extra[%d] : %v\n", i, l)
} }