From 753729134aee738abd82583618be3deac9d657ba Mon Sep 17 00:00:00 2001 From: 006lp <144674902+006lp@users.noreply.github.com> Date: Thu, 22 May 2025 00:55:32 +0800 Subject: [PATCH] fix(route/cngal): update API endpoint in CnGal (#19164) * fix: update API endpoint in GetWeeklyNewsOverview * fix: update API endpoint to follow redirect in GetEntryView * docs: fix maintainer id --------- --- lib/routes/cngal/entry.ts | 4 ++-- lib/routes/cngal/weekly.ts | 4 ++-- lib/routes/ff14/ff14-global.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/routes/cngal/entry.ts b/lib/routes/cngal/entry.ts index d16a37238..537900cbc 100644 --- a/lib/routes/cngal/entry.ts +++ b/lib/routes/cngal/entry.ts @@ -25,14 +25,14 @@ export const route: Route = { }, ], name: '制作者 / 游戏新闻', - maintainers: ['chengyuhui'], + maintainers: ['kmod-midori'], handler, }; async function handler(ctx) { const entryId = ctx.req.param('id'); - const response = await got(`https://www.cngal.org/api/entries/GetEntryView/${entryId}`); + const response = await got(`https://api.cngal.org/api/entries/GetEntryView/${entryId}`); const data = response.data; diff --git a/lib/routes/cngal/weekly.ts b/lib/routes/cngal/weekly.ts index c078c842b..34538935c 100644 --- a/lib/routes/cngal/weekly.ts +++ b/lib/routes/cngal/weekly.ts @@ -25,13 +25,13 @@ export const route: Route = { }, ], name: '每周速报', - maintainers: ['chengyuhui'], + maintainers: ['kmod-midori'], handler, url: 'www.cngal.org/', }; async function handler() { - const response = await got('https://www.cngal.org/api/news/GetWeeklyNewsOverview'); + const response = await got('https://api.cngal.org/api/news/GetWeeklyNewsOverview'); return { title: 'CnGal - 每周速报', diff --git a/lib/routes/ff14/ff14-global.ts b/lib/routes/ff14/ff14-global.ts index b04ea7412..a75fc3714 100644 --- a/lib/routes/ff14/ff14-global.ts +++ b/lib/routes/ff14/ff14-global.ts @@ -21,7 +21,7 @@ export const route: Route = { supportScihub: false, }, name: 'FINAL FANTASY XIV (The Lodestone)', - maintainers: ['chengyuhui'], + maintainers: ['kmod-midori'], handler, description: `Region