From 2945d759583f8ab946f78364c8d19f0b7ee9e910 Mon Sep 17 00:00:00 2001 From: MisteryMonster <40703811+MisteryMonster@users.noreply.github.com> Date: Sat, 9 May 2020 11:55:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Fix=20blow=20studio=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=20(#4697)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/blow-studio/work.js | 4 ++-- lib/routes/cneb/guoneinews.js | 0 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 lib/routes/cneb/guoneinews.js diff --git a/lib/routes/blow-studio/work.js b/lib/routes/blow-studio/work.js index 91d7db024..904b06dc6 100755 --- a/lib/routes/blow-studio/work.js +++ b/lib/routes/blow-studio/work.js @@ -4,14 +4,14 @@ const cheerio = require('cheerio'); module.exports = async (ctx) => { const response = await got({ method: 'get', - url: `http://blowstudio.es/work`, + url: `https://www.blowstudio.es/work/`, }); const data = response.data; const $ = cheerio.load(data); // 使用 cheerio 加载返回的 HTML const list = $('.portfolios.normal > ul > li').get().slice(0, 10); const articledata = await Promise.all( list.map(async (item) => { - const link = `https://www.blowstudio.es${$(item).find('a').attr('href')}`; + const link = `https://www.blowstudio.es${$(item).find('a').attr('href')}/`; const cache = await ctx.cache.get(link); if (cache) { diff --git a/lib/routes/cneb/guoneinews.js b/lib/routes/cneb/guoneinews.js old mode 100644 new mode 100755