From f7fd2510da737f7fba0d54e8bb23c64dcf39f61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LL=E6=A8=82?= <630413133@qq.com> Date: Thu, 13 May 2021 03:09:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=BF=AE=E5=A4=8D=E6=B8=B8?= =?UTF-8?q?=E6=B0=91=E6=98=9F=E7=A9=BA=E9=83=A8=E5=88=86=E6=96=87=E7=AB=A0?= =?UTF-8?q?url=E6=A0=BC=E5=BC=8F=E4=B8=8D=E8=A7=84=E8=8C=83=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#7337)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sukka Co-authored-by: NeverBehave --- lib/routes/gamersky/ent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/gamersky/ent.js b/lib/routes/gamersky/ent.js index f9479bd16a8cdb..5683d7de447f4c 100644 --- a/lib/routes/gamersky/ent.js +++ b/lib/routes/gamersky/ent.js @@ -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);