提交 c55a92d8 作者: 王进

增加分享参数判断

上级 fc7ce175
...@@ -792,8 +792,8 @@ class WechatSDK { ...@@ -792,8 +792,8 @@ class WechatSDK {
}, },
success: function (res) { success: function (res) {
let ShareParams = { let ShareParams = {
title: shareInfo.share_title, title: shareInfo.share_title ? shareInfo.share_title : SDKConfig.shareTitle,
imageUrl: shareInfo.share_image, imageUrl: shareInfo.share_image ? shareInfo.share_image : SDKConfig.shareImageUrl,
query: 'fromOpenId=' + _self.ReportParams.openId + '&from=share&tag=0&actId=' + actId query: 'fromOpenId=' + _self.ReportParams.openId + '&from=share&tag=0&actId=' + actId
} }
console.log("^^SDK::ShareParams", ShareParams); console.log("^^SDK::ShareParams", ShareParams);
......
/** /**
...@@ -792,8 +792,8 @@ class WechatSDK { ...@@ -792,8 +792,8 @@ class WechatSDK {
}, },
success: function (res) { success: function (res) {
let ShareParams = { let ShareParams = {
title: shareInfo.share_title, title: shareInfo.share_title ? shareInfo.share_title : SDKConfig.shareTitle,
imageUrl: shareInfo.share_image, imageUrl: shareInfo.share_image ? shareInfo.share_image : SDKConfig.shareImageUrl,
query: 'fromOpenId=' + _self.ReportParams.openId + '&from=share&tag=0&actId=' + actId query: 'fromOpenId=' + _self.ReportParams.openId + '&from=share&tag=0&actId=' + actId
} }
console.log("^^SDK::ShareParams", ShareParams); console.log("^^SDK::ShareParams", ShareParams);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论