feat: add 福州大学 (#6060)
This commit is contained in:
parent
7970e588f9
commit
c4892fd546
|
|
@ -440,6 +440,16 @@ xskb1 对应 <http://www.auto.uestc.edu.cn/index/xskb1.htm>
|
|||
|
||||
</Route>
|
||||
|
||||
## 福州大学
|
||||
|
||||
### 教务处教务通知
|
||||
|
||||
<Route author="Lao-Liu233" example="/fzu/jxtz" path="/fzu/jxtz"/>
|
||||
|
||||
### 教务处专家讲座
|
||||
|
||||
<Route author="Lao-Liu233" example="/fzu/zjjz" path="/fzu/zjjz"/>
|
||||
|
||||
## 广东工业大学
|
||||
|
||||
### 校内新闻网
|
||||
|
|
|
|||
|
|
@ -867,6 +867,10 @@ router.get('/usst/jwc', require('./routes/universities/usst/jwc'));
|
|||
// 临沂大学
|
||||
router.get('/lyu/news/:type', require('./routes/universities/lyu/news/index'));
|
||||
|
||||
// 福州大学
|
||||
router.get('/fzu/jwch', require('./routes/universities/fzu/jwch'));
|
||||
router.get('/fzu/zjjz', require('./routes/universities/fzu/zjjz'));
|
||||
|
||||
// ifanr
|
||||
router.get('/ifanr/:channel?', require('./routes/ifanr/index'));
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
const got = require('@/utils/got');
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `http://jwch.fzu.edu.cn/plus/json.aspx?jid=J131925584886784703&classid=1804&page=1&column=infoid%2Cclassid%2Ctitle%2Cdefaultpic%2Cintro%2Cadddate%2Curl%2Cclassname`,
|
||||
headers: {
|
||||
Referer: `http://jwch.fzu.edu.cn/jxtz/`,
|
||||
},
|
||||
});
|
||||
const data = response.data.data;
|
||||
|
||||
ctx.state.data = {
|
||||
title: `福州大学教务处教务通知`,
|
||||
link: `http://jwch.fzu.edu.cn/jxtz/`,
|
||||
description: `福州大学教务处教务通知`,
|
||||
item: data.map((item) => ({
|
||||
title: item.title,
|
||||
description: `${item.title}`,
|
||||
pubDate: `${item.adddate}`,
|
||||
link: `${item.url}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
const got = require('@/utils/got');
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `http://jwch.fzu.edu.cn/plus/json.aspx?jid=J131925584886784703&classid=1809&page=1&column=infoid%2Cclassid%2Ctitle%2Cdefaultpic%2Cintro%2Cadddate%2Curl%2Cclassname`,
|
||||
headers: {
|
||||
Referer: `http://jwch.fzu.edu.cn/zjjz/`,
|
||||
},
|
||||
});
|
||||
const data = response.data.data;
|
||||
|
||||
ctx.state.data = {
|
||||
title: `福州大学教务处专家讲座`,
|
||||
link: `http://jwch.fzu.edu.cn/zjjz/`,
|
||||
description: `福州大学教务处加锡讲坛/信息素养讲座通知`,
|
||||
item: data.map((item) => ({
|
||||
title: item.title,
|
||||
description: `${item.title}`,
|
||||
pubDate: `${item.adddate}`,
|
||||
link: `${item.url}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue