fix: wenxuemi remove slice for cache check (#4390)

This commit is contained in:
Ving
2020-04-13 19:26:18 +08:00
committed by GitHub
parent 9a3a99eb90
commit dfdde83f7c
+1 -1
View File
@@ -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));
}
}