From 493b2baafa230d476ed0c938441faf6bbcb7e239 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 15 Nov 2022 17:46:34 +0700 Subject: [PATCH] fix(route): nmpa stealth puppeteer (#11279) --- lib/v2/gov/nmpa/generic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/gov/nmpa/generic.js b/lib/v2/gov/nmpa/generic.js index f857a0c7ec..a57cd61d27 100644 --- a/lib/v2/gov/nmpa/generic.js +++ b/lib/v2/gov/nmpa/generic.js @@ -7,7 +7,7 @@ const baseUrl = 'https://www.nmpa.gov.cn'; module.exports = async (ctx) => { const path = ctx.params[0]; const url = `${baseUrl}/${path.endsWith('/') ? path.slice(0, -1) : path}/index.html`; - const browser = await require('@/utils/puppeteer')(); + const browser = await require('@/utils/puppeteer')({ stealth: true }); const data = await ctx.cache.tryGet( url, async () => {