test
This commit is contained in:
parent
f79e9d5f66
commit
7219be55c3
4
bot.go
4
bot.go
@ -939,7 +939,8 @@ func botGWithdraw(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
items := []ChatWarsItems{}
|
items := []ChatWarsItems{}
|
||||||
for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) {
|
for _, l := range rx.FindAllStringSubmatch(m.Payload, -1) {
|
||||||
log.Printf("botGWithdraw : %s\n", l)
|
log.Printf("botGWithdraw : %v\n", l)
|
||||||
|
/*
|
||||||
i := r.ReplaceAllString(l, "${Item}")
|
i := r.ReplaceAllString(l, "${Item}")
|
||||||
q, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Quantity}"), 10, 64)
|
q, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Quantity}"), 10, 64)
|
||||||
item := ChatWarsItems{
|
item := ChatWarsItems{
|
||||||
@ -947,6 +948,7 @@ func botGWithdraw(m *tb.Message) {
|
|||||||
Quantity: q,
|
Quantity: q,
|
||||||
}
|
}
|
||||||
items = append(items, item)
|
items = append(items, item)
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
p.Request = items
|
p.Request = items
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user