修复当前播放的音乐记录置底

This commit is contained in:
mtvpls
2026-05-15 09:31:08 +08:00
parent ac765eff78
commit cef7f73ce0
5 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ function toHistoryRecord(input: any, previous?: MusicV2HistoryRecord): MusicV2Hi
lastPlayedAt: Number(input.lastPlayedAt ?? input.last_played_at ?? now),
playCount: Number(input.playCount ?? input.play_count ?? ((previous?.playCount || 0) + 1)),
lastQuality: input.lastQuality || input.last_quality || previous?.lastQuality,
createdAt: Number(input.createdAt ?? input.created_at ?? previous?.createdAt ?? now),
createdAt: Number(previous?.createdAt ?? input.createdAt ?? input.created_at ?? now),
updatedAt: now,
};
}