0419 0318
更新4
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user