修复短剧推荐序列化问题

This commit is contained in:
mtvpls
2025-12-18 23:48:12 +08:00
parent c60e25ded6
commit c6e8f70109
3 changed files with 46 additions and 8 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export async function getDuanjuSources(): Promise<DuanjuSource[]> {
const cachedData = await db.getGlobalValue('duanju');
if (cachedData !== null) {
// 有缓存,直接返回
// 有缓存,直接返回getGlobalValue 已经处理了序列化问题)
return cachedData ? JSON.parse(cachedData) : [];
}