fix: 在 isImageCQ 函数中添加日志记录,以便调试图像消息处理
This commit is contained in:
parent
c6fbedc859
commit
853f0bf603
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user