Commit f9ae628c authored by 陈志良's avatar 陈志良

分享

parent 109edf1c
......@@ -103,14 +103,12 @@ router.get('/:ent_code/share.js', function(req, res, next) {
if(forumInfo.share_type == 1){
var shareInfo = forumInfo.share || {};
title = shareInfo.title,desc = shareInfo.description,imgUrl = shareInfo.icon;
link = link + 'index&infoId='+ id+'&uId='+uId;
getWX(res, title, desc, link, imgUrl, mid,ent_code, id,type,null);
return;
}else{
//默认分享设置
title = forumInfo.name,desc = forumInfo.description,imgUrl = forumInfo.icon;
getWX(res, title, desc, link, imgUrl, mid,ent_code, id,type,null);
}
link += 'index&infoId='+ id+'&uId='+uId;
getWX(res, title, desc, link, imgUrl, mid,ent_code, id,type,null);
}
});
}else if (type === 'Thread') {
......@@ -298,12 +296,11 @@ router.get('/sharev2.js', function(req, res, next) {
if(forumInfo.share_type && forumInfo.share_type == 1){
var shareInfo = forumInfo.share || {};
title = shareInfo.title,desc = shareInfo.description,imgUrl = shareInfo.icon;
link = link + 'index&infoId='+ id+'&uId='+uId;
getWXV2(res, title, desc, link, imgUrl, mid,ent_code, id,type,null);
}else{
title = forumInfo.name,desc = forumInfo.description,imgUrl = forumInfo.icon;
getWXV2(res, title, desc, link, imgUrl, mid,ent_code, id,type,null);
}
link = link + 'index&infoId='+ id+'&uId='+uId;
getWXV2(res, title, desc, link, imgUrl, mid,ent_code, id,type,null);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment