From 286f8cd21bdbb86d7315b74a04ff21fbd1f01001 Mon Sep 17 00:00:00 2001 From: zytomorrow Date: Mon, 11 Jan 2021 18:04:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A3=8E=E4=B9=8B=E5=8A=A8=E6=BC=AB?= =?UTF-8?q?=E5=8F=AF=E5=85=A8=E6=96=87=E8=BE=93=E5=87=BA=E6=BC=AB=E7=94=BB?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/fzdm/manhua.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/routes/fzdm/manhua.js b/lib/routes/fzdm/manhua.js index 949b8f2ae..b28fa5ad5 100644 --- a/lib/routes/fzdm/manhua.js +++ b/lib/routes/fzdm/manhua.js @@ -22,13 +22,14 @@ const get_pic = (id, chapert, caches) => { if (response.data !== undefined) { const picurl = data.match(picUrlPattern); pic_content += `
`; + if (data.match('最后一页了') !== null) { + is_last_page = true; + } } else { pic_content += ''; is_last_page = true; } - if (data.match('最后一页了') !== null) { - is_last_page = true; - } + index += 1; } return pic_content;