fix: 懂球帝缓存错误

This commit is contained in:
Henry 2022-05-06 21:38:22 +01:00
parent 115bf9338e
commit 19e3833598
No known key found for this signature in database
GPG Key ID: 6A9659F995F0CDED
1 changed files with 9 additions and 11 deletions

View File

@ -91,18 +91,16 @@ const ProcessFeed = async (ctx, link, type) => {
const title = item.title;
const link = `https://www.dongqiudi.com/news/${item.id}.html`;
return ctx.cache.tryGet(link, () =>
ctx.cache.tryGet(link, () => {
const single = {
title,
link,
};
return ctx.cache.tryGet(link, () => {
const single = {
title,
link,
};
const es = got(link);
proList.push(es);
return single;
})
);
const es = got(link);
proList.push(es);
return single;
});
})
);