This commit is contained in:
shoopea 2020-02-29 17:29:51 +08:00
parent 7d3411427c
commit 7ef68d3c09

2
msg.go
View File

@ -102,7 +102,7 @@ func parseSubTypeMessageAlchStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
log.Printf("parseSubTypeMessageAlchStockAck : Start\n") log.Printf("parseSubTypeMessageAlchStockAck : Start\n")
re := regexp.MustCompile(`\n\/aa_([0-9]{2}) ([a-zA-Z ']+) x (?[0-9]+)`) re := regexp.MustCompile(`\n\/aa_([0-9]{2}) ([a-zA-Z ']+) x ([0-9]+)`)
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stuff}"), -1) { for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stuff}"), -1) {
log.Printf("parseSubTypeMessageAlchStockAck : %+q\n", l) log.Printf("parseSubTypeMessageAlchStockAck : %+q\n", l)
i := getObjItemID(l[1], ``) i := getObjItemID(l[1], ``)