diff --git a/docs/anime.md b/docs/anime.md index 600602f9e9..c798e97354 100644 --- a/docs/anime.md +++ b/docs/anime.md @@ -443,7 +443,7 @@ Sources ### 漫画更新 - + ## 漫画 DB diff --git a/lib/routes/copymanga/comic.js b/lib/routes/copymanga/comic.js index 22b7a663af..c42a368b73 100644 --- a/lib/routes/copymanga/comic.js +++ b/lib/routes/copymanga/comic.js @@ -59,10 +59,16 @@ module.exports = async (ctx) => { `.trim(), }); + let itemsLen = chapterArray.length; + + if (chapterCnt > 0) { + itemsLen = chapterCnt; + } + ctx.state.data = { title: `拷贝漫画 - ${bookTitle}`, link: `https://copymanga.com/comic/${id}`, description: bookIntro, - item: chapterArray.map(genResult).slice(0, chapterCnt), + item: chapterArray.map(genResult).slice(0, itemsLen), }; };