From 1c12d6f33a9fec99cb30343f121a472c41369f3b Mon Sep 17 00:00:00 2001 From: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:11:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B8=AD=E5=8D=8E=E4=BA=BA?= =?UTF-8?q?=E6=B0=91=E5=85=B1=E5=92=8C=E5=9B=BD=E4=BA=A4=E9=80=9A=E8=BF=90?= =?UTF-8?q?=E8=BE=93=E9=83=A8=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=8D=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=20(#13937)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/gov/mot/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/gov/mot/index.js b/lib/v2/gov/mot/index.js index 9081f43c57204f..c6908b7796aa02 100644 --- a/lib/v2/gov/mot/index.js +++ b/lib/v2/gov/mot/index.js @@ -32,7 +32,7 @@ module.exports = async (ctx) => { items = await Promise.all( items.map((item) => ctx.cache.tryGet(item.link, async () => { - if (/\.gov\.cn/.test(item.link)) { + if (/\.gov\.cn/.test(item.link) && item.link.endsWith('.html')) { const { data: detailResponse } = await got(item.link); const content = cheerio.load(detailResponse);