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

分享

parent 109edf1c
...@@ -102,15 +102,13 @@ router.get('/:ent_code/share.js', function(req, res, next) { ...@@ -102,15 +102,13 @@ router.get('/:ent_code/share.js', function(req, res, next) {
}else{ }else{
if(forumInfo.share_type == 1){ if(forumInfo.share_type == 1){
var shareInfo = forumInfo.share || {}; var shareInfo = forumInfo.share || {};
title = shareInfo.title,desc = shareInfo.description,imgUrl = shareInfo.icon; 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{ }else{
//默认分享设置 //默认分享设置
title = forumInfo.name,desc = forumInfo.description,imgUrl = forumInfo.icon; 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') { }else if (type === 'Thread') {
...@@ -298,12 +296,11 @@ router.get('/sharev2.js', function(req, res, next) { ...@@ -298,12 +296,11 @@ router.get('/sharev2.js', function(req, res, next) {
if(forumInfo.share_type && forumInfo.share_type == 1){ if(forumInfo.share_type && forumInfo.share_type == 1){
var shareInfo = forumInfo.share || {}; var shareInfo = forumInfo.share || {};
title = shareInfo.title,desc = shareInfo.description,imgUrl = shareInfo.icon; 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{ }else{
title = forumInfo.name,desc = forumInfo.description,imgUrl = forumInfo.icon; 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