提交 9355c892 作者: 王进

调整callback位置

上级 72e14eec
...@@ -615,6 +615,7 @@ class WechatSDK { ...@@ -615,6 +615,7 @@ class WechatSDK {
// 分享 // 分享
public addShareEvent(shareInfo: shareInfo, callback?) { public addShareEvent(shareInfo: shareInfo, callback?) {
const that = this; const that = this;
if(callback) callback();
const ShareParams = { const ShareParams = {
title: shareInfo.title ? shareInfo.title : SDKConfig.shareTitle, title: shareInfo.title ? shareInfo.title : SDKConfig.shareTitle,
imageUrl: shareInfo.image ? shareInfo.image : SDKConfig.shareImageUrl, imageUrl: shareInfo.image ? shareInfo.image : SDKConfig.shareImageUrl,
...@@ -628,7 +629,6 @@ class WechatSDK { ...@@ -628,7 +629,6 @@ class WechatSDK {
return ShareParams return ShareParams
}) })
that.shareInit() that.shareInit()
if(callback) callback();
} }
public ShareApp(params?: string) { public ShareApp(params?: string) {
const that = this const that = this
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论