mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 05:36:08 +08:00
@@ -40,12 +40,15 @@ const ProcessFeed = async (list, caches) =>
|
|||||||
guid: item.originalUrl,
|
guid: item.originalUrl,
|
||||||
};
|
};
|
||||||
|
|
||||||
// 使用tryGet方法从缓存获取内容。
|
if (item.type === 'post') {
|
||||||
// 当缓存中无法获取到链接内容的时候,则使用load方法加载文章内容。
|
// 使用tryGet方法从缓存获取内容。
|
||||||
const other = await caches.tryGet(item.originalUrl, async () => await load(item.originalUrl));
|
// 当缓存中无法获取到链接内容的时候,则使用load方法加载文章内容。
|
||||||
|
const other = await caches.tryGet(item.originalUrl, async () => await load(item.originalUrl));
|
||||||
// 合并解析后的结果集作为该篇文章最终的输出结果
|
// 合并解析后的结果集作为该篇文章最终的输出结果
|
||||||
return Promise.resolve(Object.assign({}, single, other));
|
return Promise.resolve(Object.assign({}, single, other));
|
||||||
|
} else {
|
||||||
|
return Promise.resolve(single);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user