style: auto format
This commit is contained in:
parent
aae92ab9c0
commit
29276d8399
|
|
@ -12,20 +12,19 @@ module.exports = async (ctx) => {
|
|||
title: '同济大学本科生院',
|
||||
link,
|
||||
description: '同济大学本科生院通知公告',
|
||||
item:
|
||||
list?.toArray().map((item) => {
|
||||
item = $(item);
|
||||
const a = item.find('a');
|
||||
const dateItem = item.find('.li-data');
|
||||
const yearAndMonth = dateItem.find('span').text().split('-');
|
||||
const day = dateItem.find('p').text();
|
||||
const date = `${yearAndMonth[0]}-${yearAndMonth[1]}-${day}`;
|
||||
return {
|
||||
title: item.find('.li-tt-title').text(),
|
||||
description: item.find('.intro').text(),
|
||||
link: new URL(a.attr('href'), link).href,
|
||||
pubDate: parseDate(date, 'YYYY-MM-DD')
|
||||
};
|
||||
}),
|
||||
item: list?.toArray().map((item) => {
|
||||
item = $(item);
|
||||
const a = item.find('a');
|
||||
const dateItem = item.find('.li-data');
|
||||
const yearAndMonth = dateItem.find('span').text().split('-');
|
||||
const day = dateItem.find('p').text();
|
||||
const date = `${yearAndMonth[0]}-${yearAndMonth[1]}-${day}`;
|
||||
return {
|
||||
title: item.find('.li-tt-title').text(),
|
||||
description: item.find('.intro').text(),
|
||||
link: new URL(a.attr('href'), link).href,
|
||||
pubDate: parseDate(date, 'YYYY-MM-DD'),
|
||||
};
|
||||
}),
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,5 +2,4 @@ module.exports = {
|
|||
'/bks': ['shiquda'],
|
||||
'/sse/:type?': ['sgqy'],
|
||||
'/yjs': ['shengmaosu'],
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ module.exports = {
|
|||
docs: 'https://docs.rsshub.app/routes/university#tong-ji-da-xue',
|
||||
source: ['/'],
|
||||
target: '/tongji/bks',
|
||||
}
|
||||
},
|
||||
],
|
||||
sse: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2755,7 +2755,7 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE\_TL
|
|||
注意: `qttz` 与 `xytz` 在原网站等价.
|
||||
</Route>
|
||||
|
||||
### 本科生院通知公告 {#tong-ji-da-xue-yan-jiu-sheng-yuan-tong-zhi-gong-gao}
|
||||
### 本科生院通知公告 {#tong-ji-da-xue-ben-ke-sheng-yuan-tong-zhi-gong-gao}
|
||||
|
||||
<Route author="shiquda" example="/tongji/bks" path="/tongji/bks" radar="1" />
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue