fix: 修正图片文件路径生成逻辑,移除硬编码的文件前缀
This commit is contained in:
parent
e4b25e1845
commit
e6cb03fdc5
@ -165,7 +165,7 @@ func getMyRecentScore(msg model.Message) (reply model.Reply) {
|
||||
imageMsg := message.ImageMessage{
|
||||
Type: "image",
|
||||
Data: message.ImageMessageData{
|
||||
File: "file:///tmp/qqbot/" + util.GetResizedIamgePathByOrgPath(util.GenTempFilePath(record.SongHash+".jpeg")),
|
||||
File: util.GetResizedIamgePathByOrgPath(util.GenTempFilePath(record.SongHash + ".jpeg")),
|
||||
},
|
||||
}
|
||||
scoreMsg += imageMsg.ToCQString() + record.ToString() + "\n\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user