From 8b3b2e9fa53333831b246b2792702b78bc9e544d Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 8 Aug 2023 04:51:55 +0800 Subject: [PATCH] fix(route): zhihu (#12942) --- lib/v2/zhihu/answers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2/zhihu/answers.js b/lib/v2/zhihu/answers.js index dd43a0cd0..65a00cd87 100644 --- a/lib/v2/zhihu/answers.js +++ b/lib/v2/zhihu/answers.js @@ -20,7 +20,7 @@ module.exports = async (ctx) => { if (name === '知乎用户') { const userProfile = await ctx.cache.tryGet(`zhihu:profile:${id}`, async () => { - const apiPath = `/api/v4/profile/${id}/infinity`; + const apiPath = `/api/v4/members/${id}`; const { data } = await got({ method: 'get', @@ -30,7 +30,7 @@ module.exports = async (ctx) => { Referer: `https://www.zhihu.com/people/${id}`, }, }); - return data.data; + return data; }); name = userProfile.name; }