From e0800cf4a2fee5a989a12585dff7fdf7a4eaed00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A8=E6=B2=84=E6=9E=81=E5=AE=A2?= <58888890+yarin-zhang@users.noreply.github.com> Date: Fri, 28 Jul 2023 21:14:13 +0800 Subject: [PATCH] feat(route): utgd: adjust utgd apiUrl to new (#12894) * Update timeline.js * Update topic.js --- lib/v2/utgd/timeline.js | 2 +- lib/v2/utgd/topic.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2/utgd/timeline.js b/lib/v2/utgd/timeline.js index 343a0e266..9646e88c2 100644 --- a/lib/v2/utgd/timeline.js +++ b/lib/v2/utgd/timeline.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { ctx.cache.tryGet(`untag-${item.id}`, async () => { const detailResponse = await got({ method: 'get', - url: `${rootUrl}/api/v2/pages/${item.id}/`, + url: `${rootUrl}/api/v2/article/${item.id}/`, searchParams: { fields: 'article_description,article_category(category_name),article_tag(tag_name)', }, diff --git a/lib/v2/utgd/topic.js b/lib/v2/utgd/topic.js index 62b57bead..8716cc57f 100644 --- a/lib/v2/utgd/topic.js +++ b/lib/v2/utgd/topic.js @@ -40,7 +40,7 @@ module.exports = async (ctx) => { ctx.cache.tryGet(`untag-${item.id}`, async () => { const detailResponse = await got({ method: 'get', - url: `${rootUrl}/api/v2/pages/${item.id}/`, + url: `${rootUrl}/api/v2/article/${item.id}/`, searchParams: { fields: 'article_description', },