Authored by zhangxiaoru

share

... ... @@ -155,7 +155,7 @@ const detail = (req, res, next) => {
share: {
shareImg: result.content.shareImg,
shareDesc: result.head.title,
weixinUrl: req.originalUrl
weixinUrl: result.head.weixinUrl
}
... ...
... ... @@ -213,7 +213,8 @@ const _processHeadData = (list) => {
time: data.publishTime,
isLike: data.isPraise,
isFavor: data.isFavor,
likeNum: data.praiseNum
likeNum: data.praiseNum,
weixinUrl: `http://guang.m.yohobuy.com/info/index?id=${data.id}`
};
}
... ... @@ -252,6 +253,7 @@ const _processHeadData = (list) => {
avatar: data.avatar,
name: data.name
});
console.log(newData.headData)
return newData;
})();
... ...