5.4 Notes

# 5.4 Study Notes

WeChat sharing function:


Need to share to WeChat group to be resurrected! "); console.log("res===>", res, "<====");


















console.log("res.shareTickets===>", res.shareTickets, "<===");
}

// this.unschedule(this.setTime);
}.bind(this),
fail: function () {
console.log("发送失败");
}.bind(this),
complete: function () {
console.log("调用结束");
}.bind(this)
});
```

The parameter shareTickets in the sharing function is the unique identifier of the WeChat group. This value can be used to determine whether the player is sharing with friends or in group chats; shareTickets can also be used in the code for obtaining group rankings;

**·Note: **
Before using shareTickets, please open the permissions:

```
wx.showShareMenu({
withShareTicket: true
});
```

For details, please visit the official WeChat documentation: [WeChat Mini Game Development Documentation](https://developers.weixin.qq.com/minigame/dev/index.html)

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325297342&siteId=291194637
5.4