feat: /adnmb forum "timeline" (#4839)

This commit is contained in:
notofoe
2020-05-22 16:21:26 +08:00
committed by GitHub
parent d56fd7c597
commit 48c1a86ede
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -10,9 +10,9 @@ pageClass: routes
<Route author="zcx1218029121" example="/adnmb/20" path="/adnmb/:pid" :paramsDesc="['板块 id 或者板块名称,例如`/adnmb/20`等价于`/adnmb/欢乐恶搞`,现有板块请参考下表']" >
| 综合版 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 | 数码 | 女装 | 日记 | 圈内 | 都市怪谈 | 买买买 | 动画 | 漫画 | 美漫 | 国漫 | 小说 |
| ---- | ---- | ---- | ------ | ---- | ---- | ---- | ---- | -------- | ------ | ---- | ---- | ---- | ---- | ---- |
+1 -1
View File
@@ -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,