fix: 更新图片下载逻辑,移除临时文件删除操作并直接使用封面图片路径

This commit is contained in:
lixiangwuxian
2025-04-12 21:17:53 +08:00
parent 7ba0f74b49
commit 6ddb3574d0
2 changed files with 2 additions and 7 deletions

View File

@@ -210,9 +210,6 @@ func getMyRecentScore(msg model.Message) (reply *model.Reply) {
go func(songHash string) {
defer wg.Done()
//文件存在则跳过
// if _, err := os.Stat(util.GetResizedIamgePathByOrgPath(util.GenTempFilePath(songHash + ".jpeg"))); err == nil {
// return
// }
filePath, err := util.DownloadFile(coverImageMap[songHash], constants.TempDir, true)
if err != nil {
log.Printf("下载图片失败: %v", err)