Skip to content

Commit dbf02a8

Browse files
authored
fix(6park): fix index route shadow news route (#18285)
* fix(6park): fix index route shadow news shadow * typo: remove unnecessary space
1 parent 4fb2b3e commit dbf02a8

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

lib/routes/6park/index.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,21 @@ import timezone from '@/utils/timezone';
66
import { parseDate } from '@/utils/parse-date';
77

88
export const route: Route = {
9-
path: '/:id?/:type?/:keyword?',
9+
path: '/index/:id?/:type?/:keyword?',
10+
name: '首页',
11+
maintainers: ['nczitzk', 'cscnk52'],
12+
handler,
13+
example: '/6park/index',
14+
parameters: { id: '分站,见下表,默认为史海钩沉', type: '类型,可选值为 gold、type,默认为空', keyword: '关键词,可选,默认为空' },
1015
radar: [
1116
{
1217
source: ['club.6parkbbs.com/:id/index.php', 'club.6parkbbs.com/'],
1318
target: '/:id?',
1419
},
1520
],
16-
name: 'Unknown',
17-
maintainers: [],
18-
handler,
21+
description: `| 婚姻家庭 | 魅力时尚 | 女性频道 | 生活百态 | 美食厨房 | 非常影音 | 车迷沙龙 | 游戏天地 | 卡通漫画 | 体坛纵横 | 运动健身 | 电脑前线 | 数码家电 | 旅游风向 | 摄影部落 | 奇珍异宝 | 笑口常开 | 娱乐八卦 | 吃喝玩乐 | 文化长廊 | 军事纵横 | 百家论坛 | 科技频道 | 爱子情怀 | 健康人生 | 博论天下 | 史海钩沉 | 网际谈兵 | 经济观察 | 谈股论金 | 杂论闲侃 | 唯美乐园 | 学习园地 | 命理玄机 | 宠物情缘 | 网络歌坛 | 音乐殿堂 | 情感世界 |
22+
|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
23+
| life9 | life1 | chan10 | life2 | life6 | fr | enter7 | enter3 | enter6 | enter5 | sport | know1 | chan6 | life7 | chan8 | page | enter1 | enter8 | netstar | life10 | nz | other | chan2 | chan5 | life5 | bolun | chan1 | military | finance | chan4 | pk | gz1 | gz2 | gz3 | life8 | chan7 | enter4 | life3 |`,
1924
};
2025

2126
async function handler(ctx) {

lib/routes/6park/news.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ export const route: Route = {
1313
target: '/:id?',
1414
},
1515
],
16-
name: 'Unknown',
17-
maintainers: [],
16+
name: '新闻栏目',
17+
maintainers: ['nczitzk', 'cscnk52'],
18+
parameters: {
19+
site: '分站,可选newspark、local,默认为 newspark',
20+
id: '栏目 id,可选,默认为空',
21+
keyword: '关键词,可选,默认为空',
22+
},
23+
description: `::: tip 提示
24+
若订阅 [时政](https://www.6parknews.com/newspark/index.php?type=1),其网址为 <https://www.6parknews.com/newspark/index.php?type=1>,其中 \`newspark\` 为分站,\`1\` 为栏目 id。
25+
若订阅 [美国](https://local.6parknews.com/index.php?type_id=1),其网址为 <https://local.6parknews.com/index.php?type_id=1>,其中 \`local\` 为分站,\`1\` 为栏目 id。
26+
:::`,
1827
handler,
1928
};
2029

0 commit comments

Comments
 (0)