通知中心封面图显示
部分界面的信息更新 缓存系统初步引入 即将进入播放列表更新
This commit is contained in:
@@ -98,6 +98,18 @@ class SongDatabase {
|
||||
);
|
||||
}
|
||||
|
||||
// ---- 删除 ----
|
||||
Future<void> deleteSong(String songKey) async {
|
||||
final db = await database;
|
||||
await db.delete('songs', where: 'song_key = ?', whereArgs: [songKey]);
|
||||
}
|
||||
|
||||
Future<void> deleteCache(String songKey) async {
|
||||
final db = await database;
|
||||
await db
|
||||
.delete('metadata_cache', where: 'song_key = ?', whereArgs: [songKey]);
|
||||
}
|
||||
|
||||
// ---- 缓存 ----
|
||||
Future<void> insertCache(Map<String, dynamic> cache) async {
|
||||
final db = await database;
|
||||
|
||||
Reference in New Issue
Block a user