fix(route): 中国海洋大学 信息科学与工程学院 时间错误 (#13698)
This commit is contained in:
parent
edf256d98b
commit
f20687d227
|
|
@ -5,7 +5,7 @@ const { parseDate } = require('@/utils/parse-date');
|
|||
module.exports = async (ctx) => {
|
||||
const host = 'https://it.ouc.edu.cn';
|
||||
const typelist = ['学院要闻', '学院公告', '学术活动'];
|
||||
const urlList = ['xyyw/list.psp', 'xygg/list.psp', 'xshd/list.psp'];
|
||||
const urlList = ['xyyw/list.htm', 'xygg/list.htm', 'xshd/list.htm'];
|
||||
const type = parseInt(ctx.params.type) || 0;
|
||||
const link = new URL(urlList[type], host).href;
|
||||
const response = await got(link);
|
||||
|
|
@ -19,7 +19,7 @@ module.exports = async (ctx) => {
|
|||
return {
|
||||
title: a.attr('title'),
|
||||
link: new URL(a.attr('href'), host).href,
|
||||
pubDate: parseDate(e.find('span').text(), 'YYYY-MM-DD'),
|
||||
pubDate: parseDate(e.find('span.news_meta').text(), 'YYYY-MM-DD'),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = {
|
||||
'/it/postgraduate': ['shengmaosu'],
|
||||
'/it/:type?': ['GeoffreyChen777'],
|
||||
'/it/:type?': ['GeoffreyChen777', '3401797899'],
|
||||
'/jwc': ['3401797899'],
|
||||
'/jwgl': ['3401797899'],
|
||||
'/yjs': ['shengmaosu'],
|
||||
|
|
|
|||
|
|
@ -3853,7 +3853,7 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS
|
|||
|
||||
### 信息科学与工程学院 {#zhong-guo-hai-yang-da-xue-xin-xi-ke-xue-yu-gong-cheng-xue-yuan}
|
||||
|
||||
<Route author="GeoffreyChen777" example="/ouc/it/0" path="/ouc/it/:type?" paramsDesc={['默认为 `0`']} radar="1">
|
||||
<Route author="GeoffreyChen777 3401797899" example="/ouc/it/0" path="/ouc/it/:type?" paramsDesc={['默认为 `0`']} radar="1">
|
||||
|
||||
| 学院要闻 | 学院公告 | 学院活动 |
|
||||
| -------- | -------- | -------- |
|
||||
|
|
|
|||
Loading…
Reference in New Issue