This commit is contained in:
shoopea 2019-10-10 18:15:14 +08:00
parent cd38dc3933
commit 9f155669ae

2
msg.go
View File

@ -223,7 +223,7 @@ func parseSubTypeMessageWithdrawRcv(m *ChatWarsMessage, r *regexp.Regexp) (*Chat
cwm := ChatWarsMessageWithdrawRcv{} cwm := ChatWarsMessageWithdrawRcv{}
items := []ChatWarsItems{} items := []ChatWarsItems{}
re := regexp.MustCompile(`(.*) x (.*)`) re := regexp.MustCompile(`(.*) x (.*)`)
for _, l := range re.FindAllStringSubmatch(m.Text), -1) { for _, l := range re.FindAllStringSubmatch(m.Text, -1) {
i := getObjItemID(``, l[1]) i := getObjItemID(``, l[1])
q, _ := strconv.ParseInt(l[2], 10, 64) q, _ := strconv.ParseInt(l[2], 10, 64)
if i != 0 { if i != 0 {