fix vualt item

This commit is contained in:
shoopea 2020-01-18 15:59:26 +08:00
parent 85ebe5e825
commit 5e2ce7e747

2
bot.go
View File

@ -787,7 +787,7 @@ func botVaultItem(m *tb.Message) {
UserID64: int64(m.Sender.ID),
}
r := regexp.MustCompile("([a-z][0-9]{2}[a-e]{0,1})")
r := regexp.MustCompile("([a-z][0-9]{2}[a-e]{0,1}|([0-9]{2}))")
for _, l := range r.FindAllStringSubmatch(m.Payload, -1) {
item := getObjItemID(l[1], ``)
if item != 0 {