fix(route): 中国海洋大学 信息科学与工程学院 时间错误 (#13698)

This commit is contained in:
2023-11-06 00:06:51 +08:00 committed by GitHub
parent edf256d98b
commit f20687d227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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'),
};
});

View File

@ -1,6 +1,6 @@
module.exports = {
'/it/postgraduate': ['shengmaosu'],
'/it/:type?': ['GeoffreyChen777'],
'/it/:type?': ['GeoffreyChen777', '3401797899'],
'/jwc': ['3401797899'],
'/jwgl': ['3401797899'],
'/yjs': ['shengmaosu'],

View File

@ -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">
| 学院要闻 | 学院公告 | 学院活动 |
| -------- | -------- | -------- |