From 19e38335987427670f4e14ede00a428d38eab035 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 6 May 2022 21:38:22 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=87=82=E7=90=83=E5=B8=9D=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/dongqiudi/utils.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/v2/dongqiudi/utils.js b/lib/v2/dongqiudi/utils.js index 52f12c4a4..4e2ae67a3 100644 --- a/lib/v2/dongqiudi/utils.js +++ b/lib/v2/dongqiudi/utils.js @@ -91,18 +91,16 @@ const ProcessFeed = async (ctx, link, type) => { const title = item.title; const link = `https://www.dongqiudi.com/news/${item.id}.html`; - return ctx.cache.tryGet(link, () => - ctx.cache.tryGet(link, () => { - const single = { - title, - link, - }; + return ctx.cache.tryGet(link, () => { + const single = { + title, + link, + }; - const es = got(link); - proList.push(es); - return single; - }) - ); + const es = got(link); + proList.push(es); + return single; + }); }) );