From dfdde83f7c7073e57e0e1ff91e3eeb5b23df8da4 Mon Sep 17 00:00:00 2001 From: Ving Date: Mon, 13 Apr 2020 19:26:18 +0800 Subject: [PATCH] fix: wenxuemi remove slice for cache check (#4390) --- lib/routes/novel/wenxuemi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/novel/wenxuemi.js b/lib/routes/novel/wenxuemi.js index 347378131..745dfb321 100644 --- a/lib/routes/novel/wenxuemi.js +++ b/lib/routes/novel/wenxuemi.js @@ -44,7 +44,7 @@ module.exports = async (ctx) => { description: res.html(), link: link, }; - if (res.text().slice(0, 10).includes('正在手打中') === false) { + if (res.text().includes('正在手打中') === false) { ctx.cache.set(link, JSON.stringify(resultItem)); } }