feat: filter out unnecessary items (zaker & futunn) (#6387)

This commit is contained in:
Jankin Wei 2020-12-10 06:21:35 +08:00 committed by GitHub
parent 36ca01429c
commit 59efe27e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -46,10 +46,11 @@ module.exports = async (ctx) => {
return Promise.resolve(single);
})
);
const outfilter = out.filter((t) => t.description !== '原文已被删除');
ctx.state.data = {
title: `富途牛牛要闻`,
link: link,
item: out,
item: outfilter,
};
};

View File

@ -54,10 +54,11 @@ module.exports = async (ctx) => {
return Promise.resolve(single);
})
);
const outfilter = out.filter((t) => t.description !== '原文已被删除');
ctx.state.data = {
title: `${title}-ZAKER精读新闻`,
link: link,
item: out,
item: outfilter,
};
};