fix: 应急预警|国内新闻 限制条目至20,源1000个。 (#4605)
This commit is contained in:
@@ -6,12 +6,12 @@ module.exports = async (ctx) => {
|
||||
method: 'get',
|
||||
url: 'http://www.cneb.gov.cn/guoneinews/guoneidata/',
|
||||
})
|
||||
).data.rollData;
|
||||
).data.rollData.slice(0, 50);
|
||||
|
||||
const items = list.map((item) => {
|
||||
const single = {
|
||||
title: item.title,
|
||||
description: item.description.replace(/<!\[CDATA\[.+?]]>/g, ''),
|
||||
description: item.description,
|
||||
pubDate: new Date(item.dateTime + ' UTC+08:00').toString(),
|
||||
link: item.url,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user