From 7219be55c39566acd0c3abab33f8c589558e29e7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 5 Jan 2020 17:43:23 +0800 Subject: [PATCH] test --- bot.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bot.go b/bot.go index b9cd9b7..be012c2 100644 --- a/bot.go +++ b/bot.go @@ -939,14 +939,16 @@ func botGWithdraw(m *tb.Message) { } items := []ChatWarsItems{} for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) { - log.Printf("botGWithdraw : %s\n", l) - i := r.ReplaceAllString(l, "${Item}") - q, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Quantity}"), 10, 64) - item := ChatWarsItems{ - Item: i, - Quantity: q, - } - items = append(items, item) + log.Printf("botGWithdraw : %v\n", l) + /* + i := r.ReplaceAllString(l, "${Item}") + q, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Quantity}"), 10, 64) + item := ChatWarsItems{ + Item: i, + Quantity: q, + } + items = append(items, item) + */ } p.Request = items