完善私聊获取图片

This commit is contained in:
fumiama 2021-08-07 15:05:37 +08:00
parent 1d2960a51c
commit f0fd1eaf22

View File

@ -89,7 +89,7 @@ func init() { // 插件主体
zero.OnRegex(`^给你点提示哦:(.*)$`, zero.OnlyPrivate).SetBlock(true).SetPriority(20).
Handle(func(ctx *zero.Ctx) {
dhash := ctx.State["regex_matched"].([]string)[1]
if len(dhash) == 5 {
if len(dhash) == 5*3 {
ctx.Send(message.Image(apihead + dhash))
}
})