fix: 在 isImageCQ 函数中添加日志记录,以便调试图像消息处理

This commit is contained in:
lixiangwuxian 2025-03-18 19:26:25 +08:00
parent c6fbedc859
commit 853f0bf603

View File

@ -157,6 +157,7 @@ func GenerateCongratulationImage(text string, inputFile, outputFile string, isGo
} }
func isImageCQ(text string) (string, bool) { func isImageCQ(text string) (string, bool) {
log.Println("isImageCQ ", text)
imgMsg := message.ImageMessage{} imgMsg := message.ImageMessage{}
if err := imgMsg.ParseMessage(text); err == nil { if err := imgMsg.ParseMessage(text); err == nil {
return imgMsg.Data.URL, true return imgMsg.Data.URL, true