diff --git a/lib/routes/tencent/news/author.ts b/lib/routes/tencent/news/author.ts index bb1169b4d..f100474fd 100644 --- a/lib/routes/tencent/news/author.ts +++ b/lib/routes/tencent/news/author.ts @@ -35,7 +35,8 @@ export const route: Route = { async function handler(ctx) { const mid = ctx.req.param('mid'); - const homePageInfoUrl = `https://i.news.qq.com/i/getUserHomepageInfo?chlid=${mid}`; + const userType = /^\d+$/.test(mid) ? "chlid" : "guestSuid"; + const homePageInfoUrl = `https://i.news.qq.com/i/getUserHomepageInfo?${userType}=${mid}`; const userInfo = await cache.tryGet(homePageInfoUrl, async () => (await got(homePageInfoUrl)).data.userinfo); const title = userInfo.nick; const description = userInfo.user_desc;