From 48c1a86edeed409976d8a9719fd3a07fc23e78ef Mon Sep 17 00:00:00 2001 From: notofoe <43095406+notofoe@users.noreply.github.com> Date: Fri, 22 May 2020 16:21:26 +0800 Subject: [PATCH] feat: /adnmb forum "timeline" (#4839) --- docs/bbs.md | 6 +++--- lib/routes/adnmb/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/bbs.md b/docs/bbs.md index 1c6af5e73..3f38dd73a 100644 --- a/docs/bbs.md +++ b/docs/bbs.md @@ -10,9 +10,9 @@ pageClass: routes -| 综合版 1 | 围炉 | 欢乐恶搞 | 速报 2 | 推理 | 跑团 | 技术宅 | 料理 | 猫版 | 音乐 | 考试 | 社畜 | -| -------- | ---- | -------- | ------ | ---- | ---- | ------ | ---- | ---- | ---- | ---- | ---- | -| 4 | 120 | 20 | 121 | 11 | 111 | 30 | 32 | 40 | 35 | 56 | 110 | +| 时间线 | 综合版 1 | 围炉 | 欢乐恶搞 | 速报 2 | 推理 | 跑团 | 技术宅 | 料理 | 猫版 | 音乐 | 考试 | 社畜 | +| ----- | -------- | ---- | -------- | ------ | ---- | ---- | ------ | ---- | ---- | ---- | ---- | ---- | +| -1 | 4 | 120 | 20 | 121 | 11 | 111 | 30 | 32 | 40 | 35 | 56 | 110 | | 科学 | 文学 | 创意 | 姐妹 1 | 数码 | 女装 | 日记 | 圈内 | 都市怪谈 | 买买买 | 动画 | 漫画 | 美漫 | 国漫 | 小说 | | ---- | ---- | ---- | ------ | ---- | ---- | ---- | ---- | -------- | ------ | ---- | ---- | ---- | ---- | ---- | diff --git a/lib/routes/adnmb/index.js b/lib/routes/adnmb/index.js index c6277fc9f..1db69323d 100644 --- a/lib/routes/adnmb/index.js +++ b/lib/routes/adnmb/index.js @@ -24,7 +24,7 @@ module.exports = async (ctx) => { const forumInfo = await getForumInfo(pid, ctx); - const url = `https://adnmb2.com/Api/showf?id=${forumInfo.id}&page=1`; + const url = forumInfo.name === '时间线' ? `https://adnmb2.com/Api/timeline?page=1` : `https://adnmb2.com/Api/showf?id=${forumInfo.id}&page=1`; const response = await got({ method: 'get', url: url,