fix(route): 修复游民星空部分文章url格式不规范的问题 (#7337)
Co-authored-by: Sukka <isukkaw@gmail.com> Co-authored-by: NeverBehave <gayhub@never.pet>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user