style: auto format
This commit is contained in:
+11
-13
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user