This commit is contained in:
shoopea 2020-01-05 15:28:23 +08:00
parent ac827d451f
commit 1b51a5c492

4
bot.go
View File

@ -939,8 +939,8 @@ func botGWithdraw(m *tb.Message) {
}
items := []ChatWarsItems{}
for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) {
i := l[1]
q, _ := strconv.ParseInt(l[2], 10, 64)
i := l[0]
q, _ := strconv.ParseInt(l[1], 10, 64)
item := ChatWarsItems{
Item: i,
Quantity: q,