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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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));
}
}