增加设计学院研创、后浪模块

This commit is contained in:
evnydd0sf
2022-10-04 14:33:04 +08:00
parent 102cb48db6
commit b67157645c
2 changed files with 21 additions and 7 deletions
+8 -6
View File
@@ -2118,12 +2118,14 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS
<Route author="evnydd0sf" example="/nua/dc/news" path="/nua/dc/:type" :paramsDesc="['新闻模块,见下表']" radar="1">
| 新闻模块 | 参数 |
| ---------- | ------- |
| 学院新闻 NEWS | news |
| 教学 TEACH | teach |
| 项目 PROJECT | project |
| 党团 PARTY | party |
| 新闻模块 | 参数 |
| ---------------------- | ---------- |
| 学院新闻 NEWS | news |
| 展览 EXHIBITION | exhibition |
| 研创 RESEARCH & CREATION | rc |
| 项目 PROJECT | project |
| 党团 PARTY | party |
| 后浪 YOUTH | youth |
</Route>
+13 -1
View File
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
artiContent = '.article';
webPageName = 'li.pre35.left .big_title';
break;
case 'teach':
case 'exhibition':
listName = 'li.pre65.right li.effects';
listDate = '.date';
artiContent = '.article';
@@ -29,12 +29,24 @@ module.exports = async (ctx) => {
artiContent = '.article';
webPageName = 'ul.center .big_title';
break;
case 'rc':
listName = 'div.pre65.left p.small_content_2';
listDate = '.date';
artiContent = '.article';
webPageName = 'div.pre65.left.is-inview .big_title';
break;
case 'party':
listName = 'div.pre35.right li.party_list';
listDate = '.date';
artiContent = '.article';
webPageName = 'div.pre35.right .big_title';
break;
case 'youth':
listName = 'ul.works_list p.small_content_2';
listDate = '.date';
artiContent = '.article';
webPageName = 'ul.screen_4 .big_title';
break;
default:
throw Error(`暂不支持对${type}的订阅`);
}