fix: 移除下载图片时的文件存在检查逻辑,以确保每次都下载最新的封面图片
This commit is contained in:
parent
ed49a27fd4
commit
a374db2560
@ -178,10 +178,6 @@ func getMyRecentScore(msg model.Message) (reply *model.Reply) {
|
||||
wg.Add(1)
|
||||
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], "/tmp/qqbot")
|
||||
if err != nil {
|
||||
log.Printf("下载图片失败: %v", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user