diff --git a/lib/routes/weibo/user.js b/lib/routes/weibo/user.js index 75a2a05b6..47f9ac81b 100644 --- a/lib/routes/weibo/user.js +++ b/lib/routes/weibo/user.js @@ -13,6 +13,8 @@ module.exports = async (ctx) => { }, }); const name = containerResponse.data.data.userInfo.screen_name; + const description = containerResponse.data.data.userInfo.description; + const profileImageUrl = containerResponse.data.data.userInfo.profile_image_url; const containerid = containerResponse.data.data.tabsInfo.tabs[1].containerid; const response = await axios({ @@ -29,7 +31,8 @@ module.exports = async (ctx) => { ctx.state.data = { title: `${name}的微博`, link: `http://weibo.com/${uid}/`, - description: `${name}的微博`, + description: description, + image: profileImageUrl, item: response.data.data.cards .filter((item) => item.mblog && !item.mblog.isTop) .map((item) => {