fix(route): zhihu (#12942)

This commit is contained in:
Tony
2023-08-08 04:51:55 +08:00
committed by GitHub
parent 166661fb62
commit 8b3b2e9fa5
+2 -2
View File
@@ -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;
}