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

Merge branch '0922_forum_share' into SANDBOX

parents 7bc04676 f9ae628c
......@@ -102,15 +102,13 @@ router.get('/:ent_code/share.js', function(req, res, next) {
}else{
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;
title = shareInfo.title,desc = shareInfo.description,imgUrl = shareInfo.icon;
}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