fix(route): dx2025/category policy-achievement is failure and refactor to V2 (#9592)

This commit is contained in:
Fatpandac 2022-04-22 19:28:15 +08:00 committed by GitHub
parent 17658b331e
commit fa3428f8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 4 deletions

View File

@ -1664,9 +1664,9 @@ area 分区选项
内容类别
| 产业观察 | 行业报告 | 政策 & 成效 |
| -------------------- | ---------------- | ------------------ |
| industry-observation | industry-reports | policy-achievement |
| 产业观察 | 行业报告 | 政策 | 数据 |
| -------------------- | ---------------- | ------ | ---- |
| industry-observation | industry-reports | policy | data |
行业分类

View File

@ -3457,7 +3457,7 @@ router.get('/blizzard/news/:language?/:category?', lazyloadRouteHandler('./route
router.get('/deepmind/blog/:category?', lazyloadRouteHandler('./routes/deepmind/blog'));
// 东西智库
router.get('/dx2025/:type?/:category?', lazyloadRouteHandler('./routes/dx2025/index'));
// router.get('/dx2025/:type?/:category?', lazyloadRouteHandler('./routes/dx2025/index'));
// DeepL
router.get('/deepl/blog/:lang?', lazyloadRouteHandler('./routes/deepl/blog'));

View File

@ -0,0 +1,3 @@
module.exports = {
'/:type?/:category?': ['nczitzk'],
};

19
lib/v2/dx2025/radar.js Normal file
View File

@ -0,0 +1,19 @@
module.exports = {
'dx2025.com': {
_name: '东西智库',
'.': [
{
title: '分类',
docs: 'https://docs.rsshub.app/multimedia.html#e-hentai-fen-lei',
source: ['/archives/category/:type/:category?', '/archives/category/:type'],
target: (params) => `/dx2025/${params.type}/${params.category ? params.category : ''}`,
},
{
title: '标签',
docs: 'https://docs.rsshub.app/multimedia.html#e-hentai-biao-qian',
source: ['/archives/tag/:tag'],
target: '/dx2025/tag/:tag',
},
],
},
};

3
lib/v2/dx2025/router.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = function (router) {
router.get('/:type?/:category?', require('./index'));
};