refactor: 移除 ScoreSaber 和 BeatLeader 热门成绩相关代码,并为玩家信息添加头像显示

This commit is contained in:
lixiangwuxian
2025-03-09 00:24:44 +08:00
parent 7d5b69685b
commit 2eb9716d24
6 changed files with 76 additions and 215 deletions

View File

@@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"strings"
)
@@ -23,7 +22,6 @@ func GetSongIdsByHash(hashs []string) (hashToSongId map[string]string, err error
}
batchHashs := hashs[i:end]
queryUrl := "https://api.beatsaver.com/maps/hash/" + strings.Join(batchHashs, ",")
log.Default().Printf("获取歌曲IDurl:%s", queryUrl)
resp, err := http.Get(queryUrl)
if err != nil {
return nil, err