diff --git a/lib/v2/swjtu/jtys/yjs.js b/lib/v2/swjtu/jtys/yjs.js index df13855a4..e16134c61 100644 --- a/lib/v2/swjtu/jtys/yjs.js +++ b/lib/v2/swjtu/jtys/yjs.js @@ -19,19 +19,17 @@ module.exports = async (ctx) => { link: url_addr, item: list && - list - .toArray() - .map((i) => { - const item = $(i); - const news_info = item.find('div[class="news-title newsInfo"]'); - const news_month = item.find('.month'); - const news_day = item.find('.day'); - return { - title: `标题:${news_info.text()}`, - pubDate: parseDate(`${news_month.text()}.${news_day.text()}`), - link: `${rootURL}/yethan/WebIndexAction?setAction=newsInfo&newsId=${news_info.attr('newsid')}`, - }; - }), + list.toArray().map((i) => { + const item = $(i); + const news_info = item.find('div[class="news-title newsInfo"]'); + const news_month = item.find('.month'); + const news_day = item.find('.day'); + return { + title: `标题:${news_info.text()}`, + pubDate: parseDate(`${news_month.text()}.${news_day.text()}`), + link: `${rootURL}/yethan/WebIndexAction?setAction=newsInfo&newsId=${news_info.attr('newsid')}`, + }; + }), allowEmpty: true, }; };