fix(route): zhihu (#12942)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user