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;