fix: drawlots

This commit is contained in:
源文雨 2023-03-09 13:56:51 +08:00
parent 09a3e807c9
commit 960cd3ad8b

View File

@ -67,7 +67,7 @@ func init() {
}
ctx.SendChain(message.Image("base64://" + helper.BytesToString(textPic)))
})
en.OnRegex(`^抽(.*)签$`).SetBlock(true).Handle(func(ctx *zero.Ctx) {
en.OnRegex(`^抽(.+)签$`).SetBlock(true).Handle(func(ctx *zero.Ctx) {
lotsType := ctx.State["regex_matched"].([]string)[1]
fileInfo, ok := lotsList[lotsType]
if !ok {