0419 0318

更新4
This commit is contained in:
spasolreisa
2026-04-19 03:18:42 +08:00
parent d4bbc424c6
commit 74e47971ca
25 changed files with 1221 additions and 371 deletions

View File

@@ -47,7 +47,6 @@ class RecommendationHelper {
// 提取关键字段
final int musicId = detail['musicId'] ?? detail['id'] ?? 0;
if(musicId>16000) continue;
final int level = detail['level'] ?? detail['levelIndex'] ?? 3; // 默认 Master
final int achievement = detail['achievement'] ?? 0;
// 确保 rating 是 double
@@ -100,6 +99,7 @@ class RecommendationHelper {
for (var song in allSongs) {
// 过滤无效 ID
if (song.id < 100) continue;
if (song.id > 16000) continue;
// 获取 Master (Level 3) 的定数,如果没有则获取 Expert (Level 2)
double? masterLevel = _getSongLevel(song, 3);