From 9ebc992d855699e6f0889adf09ff950056604f35 Mon Sep 17 00:00:00 2001 From: Gandum2077 Date: Sun, 24 Jan 2021 11:39:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B4=B3=E5=A3=AB=E6=BC=AB=E7=95=AB=20?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=9B=B4=E6=96=B0=20=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AF=20(#6764?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/ssmh/category.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/ssmh/category.js b/lib/routes/ssmh/category.js index a109830920..6f53487cf5 100644 --- a/lib/routes/ssmh/category.js +++ b/lib/routes/ssmh/category.js @@ -37,7 +37,7 @@ module.exports = async (ctx) => { item: list .map((index, item) => { item = $(item); - const thumbnail_url = 'https:' + `${item.find('a > img').attr('data-original')}`; + const thumbnail_url = 'https:' + `${item.find('a > img').attr('src') ? item.find('a > img').attr('src') : item.find('a > img').attr('data-original')}`; const link_url = 'https://wnacg.org' + `${item.find('a').attr('href')}`; return { title: item.find('a').attr('title'),