Files
RSSHub/lib/v2/ucas/radar.js
T
Tony 8699b4c9d3 fix(route): fix namespace mess from #4283 (#12353)
* refactor: fix scut namespace

* refactor: fix gzhu namespace

* refactor: fix scnu namespace

* refactor: fix hust namespace

* refactor: fix ccnu namespace

* refactor: fix sustech namespace

* refactor: fix szu namespace

remove `/szuyjs` since it's a duplicate of `/szu/yz/:type?`

* refactor: fix tongji namespace

* refactor: fix ocu namespace

* refactor: fix upc namespace

* refactor: fix ucas namespace

* refactor: fix cas namespace

* refactor: fix cau namespace

* refactor: remove `/cucyjs` since `/cuc/yz` existed well before that

* refactor: fix bit namespace

* refactor: fix **undocumented** scau namespace

* fix: typo

* fix: code scan
2023-04-20 09:32:13 +08:00

42 lines
1.4 KiB
JavaScript

module.exports = {
'ucas.ac.cn': {
_name: '中国科学院大学',
ai: [
{
title: '人工智能学院',
docs: 'https://docs.rsshub.app/university.html#zhong-guo-ke-xue-yuan-da-xue',
source: ['/index.php/zh-cn/tzgg', '/'],
target: '/ucas/ai',
},
],
zhaopin: [
{
title: '招聘信息',
docs: 'https://docs.rsshub.app/university.html#zhong-guo-ke-xue-yuan-da-xue',
source: ['/gjob/login.do', '/'],
target: (_, url) => {
const c = new URL(url).searchParams.get('c');
let type = '';
switch (c) {
case '3':
type = 'jxkyrc';
break;
case '4':
type = 'glzcrc';
break;
case '5':
type = 'ktxmpy';
break;
case '6':
type = 'bsh';
break;
default:
break;
}
return `/ucas/job${type ? `/${type}` : ''}`;
},
},
],
},
};