|
@@ -227,10 +227,12 @@ class WeChat {
|
|
|
fail: () => {
|
|
|
console.log('分享失败或取消');
|
|
|
fail && fail();
|
|
|
- GameEvent.fire(GameNotificationKey.ShowShareAction, GameGlobal.gameShareType, false);
|
|
|
- GameGlobal.clickShare = false;
|
|
|
- GameGlobal.gameShareType = WechatShareType.None;
|
|
|
- GameGlobal.isIgnoreShareStatus = false;
|
|
|
+ if (GameGlobal.clickShare) {
|
|
|
+ GameEvent.fire(GameNotificationKey.ShowShareAction, GameGlobal.gameShareType, false);
|
|
|
+ GameGlobal.clickShare = false;
|
|
|
+ GameGlobal.gameShareType = WechatShareType.None;
|
|
|
+ GameGlobal.isIgnoreShareStatus = false;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
} else if (CC_WECHATGAME) {
|