Skip to content

Commit

Permalink
fix(route): 修复游民星空部分文章url格式不规范的问题 (DIYgod#7337)
Browse files Browse the repository at this point in the history
Co-authored-by: Sukka <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
  • Loading branch information
3 people authored May 12, 2021
1 parent cf38a0c commit f7fd251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/gamersky/ent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7fd251

Please sign in to comment.