From 0557b9d53cab98a8dea43110e5e0ad9a897cb708 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 5 Jan 2020 17:46:50 +0800 Subject: [PATCH] test --- bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.go b/bot.go index 86c4237..1fb8d49 100644 --- a/bot.go +++ b/bot.go @@ -940,8 +940,8 @@ func botGWithdraw(m *tb.Message) { items := []ChatWarsItems{} for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) { log.Printf("botGWithdraw : %s / %s / %s\n", l[0], l[1], l[2]) - i := r.ReplaceAllString(l[0], "${Item}") - q, _ := strconv.ParseInt(r.ReplaceAllString(l[0], "${Quantity}"), 10, 64) + i := l[1] + q, _ := strconv.ParseInt(l[2], 10, 64) item := ChatWarsItems{ Item: i, Quantity: q,