diff --git a/docs/university.md b/docs/university.md index b99f4dc6a..31ce8f998 100644 --- a/docs/university.md +++ b/docs/university.md @@ -2352,7 +2352,7 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS ### 官网信息 - + | 学术讲座 | 通知公告 | | ------ | ----- | @@ -2360,7 +2360,7 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS ### 教务信息 - + | 教务公告 | 教务新闻 | | ---- | ---- | @@ -2370,9 +2370,9 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS -| 部门通知公告 | -| ------ | -| bmtzgg | +| 部门通知公告 | 学术与大型活动公告 | 部门动态 | +| ------ | --------- | ---- | +| bmtzgg | xsydxhdgg | bmdt | ## 上海海洋大学 diff --git a/lib/v2/shmtu/maintainer.js b/lib/v2/shmtu/maintainer.js index 5b942fa5d..f2ce8474f 100644 --- a/lib/v2/shmtu/maintainer.js +++ b/lib/v2/shmtu/maintainer.js @@ -1,5 +1,5 @@ module.exports = { - '/jwc/:type': ['simonsmh'], + '/jwc/:type': ['imbytecat', 'simonsmh'], '/portal/:type': ['imbytecat'], - '/www/:type': ['simonsmh'], + '/www/:type': ['imbytecat', 'simonsmh'], }; diff --git a/lib/v2/shmtu/portal.js b/lib/v2/shmtu/portal.js index 692657170..671fc32c2 100644 --- a/lib/v2/shmtu/portal.js +++ b/lib/v2/shmtu/portal.js @@ -30,7 +30,21 @@ const processFeed = (list, caches) => module.exports = async (ctx) => { const type = ctx.params.type; - const info = type === 'bmtzgg' ? '部门通知公告' : '未知'; + let info; + switch (type) { + case 'bmtzgg': + info = '部门通知公告'; + break; + case 'xsydxhdgg': + info = '学术与大型活动公告'; + break; + case 'bmdt': + info = '部门动态'; + break; + default: + info = '未知'; + break; + } const response = await got.post(bootstrapHost, { form: {