fix(route): 修复游民星空部分文章url格式不规范的问题 (#7337)

Co-authored-by: Sukka <isukkaw@gmail.com>
Co-authored-by: NeverBehave <gayhub@never.pet>
This commit is contained in:
LL樂
2021-05-12 15:09:27 -04:00
committed by GitHub
co-authored by Sukka NeverBehave
parent cf38a0c7e4
commit f7fd2510da
+1 -1
View File
@@ -39,7 +39,7 @@ module.exports = async (ctx) => {
const out = await Promise.all(
list.map(async (info) => {
const title = info.title;
const itemUrl = info.link;
const itemUrl = info.link.startsWith('https://') ? info.link : `https://www.gamersky.com/${info.link}`;
const pubDate = info.pubDate;
const cache = await ctx.cache.get(itemUrl);