From 05acee4b9ed3d22d1ecca97c805c99e659dde772 Mon Sep 17 00:00:00 2001 From: EsuRt <15177069+EsuRt@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:10:40 +0800 Subject: [PATCH] fix(route/mittrchina): update api (#17552) --- lib/routes/mittrchina/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/mittrchina/index.ts b/lib/routes/mittrchina/index.ts index 2fcfb22fe87f1b..fa2d8d14d1c7a4 100644 --- a/lib/routes/mittrchina/index.ts +++ b/lib/routes/mittrchina/index.ts @@ -52,7 +52,7 @@ async function handler(ctx) { const { type = 'index' } = ctx.req.param(); const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 10; - const link = `https://apii.mittrchina.com${typeMap[type].apiPath}`; + const link = `https://apii.web.mittrchina.com${typeMap[type].apiPath}`; const { data: response } = type === 'breaking' ? await got.post(link, { @@ -95,7 +95,7 @@ async function handler(ctx) { cache.tryGet(item.link, async () => { const { data: { data: details }, - } = await got(`https://apii.mittrchina.com/information/details?id=${item.id}`); + } = await got(`https://apii.web.mittrchina.com/information/details?id=${item.id}`); item.description = details.content;