修复关系型数据库保存音乐记录错误,播放记录修改为队列式

This commit is contained in:
mtvpls
2026-05-09 10:25:39 +08:00
parent 2480b4d28b
commit a8cacf3e60
6 changed files with 54 additions and 14 deletions
+2
View File
@@ -273,6 +273,8 @@ export class DbManager {
// Music V2 历史记录相关
async listMusicV2History(userName: string): Promise<MusicV2HistoryRecord[]> {
if (typeof (this.storage as any).listMusicV2History === 'function') {
// 按播放队列顺序返回(createdAt ASC),
// 当前播放项由调用方基于 lastPlayedAt 决定。
return (this.storage as any).listMusicV2History(userName);
}
return [];