From 1b51a5c49239b3398871bbd2a1274a560f428553 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 5 Jan 2020 15:28:23 +0800 Subject: [PATCH] test --- bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.go b/bot.go index ff912c2..e8967b9 100644 --- a/bot.go +++ b/bot.go @@ -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,