优化 ctx ERROR

This commit is contained in:
源文雨
2023-03-25 20:23:56 +08:00
parent 1aa11879dc
commit 0c8dfb3f9c
3 changed files with 11 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ func init() {
}
picURL := gjson.Get(binary.BytesToString(data), "imageUrl").String()
if err != nil {
ctx.SendChain(message.Text("ERROR:", err))
ctx.SendChain(message.Text("ERROR: ", err))
return
}
ctx.SendChain(message.Image(picURL))