From e8aa07afd92326c726b3fd3b18698a09b15d78d4 Mon Sep 17 00:00:00 2001 From: laoxu Date: Sun, 10 Jan 2021 20:34:46 +0800 Subject: [PATCH] Update zfxxgj.js --- lib/routes/gov/shenzhen/xxgk/zfxxgj.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/routes/gov/shenzhen/xxgk/zfxxgj.js b/lib/routes/gov/shenzhen/xxgk/zfxxgj.js index 18cb5a8982..831dceafaa 100644 --- a/lib/routes/gov/shenzhen/xxgk/zfxxgj.js +++ b/lib/routes/gov/shenzhen/xxgk/zfxxgj.js @@ -24,16 +24,13 @@ const config = { }; module.exports = async (ctx) => { - const cfg = config[ctx.params.caty]; - console.log(cfg.link); + const cfg = config[ctx.params.caty]; if (!cfg) { throw Error('Bad category. See docs'); } const currentUrl = url.resolve(rootUrl, cfg.link); - const response = await got({ method: 'get', url: currentUrl }); - const $ = cheerio.load(response.data); const list = $('div.zx_ml_list ul li span.tit') .map((_, item) => {