业务场景, 一些私密的小程序分享, 禁止二次转发
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/private-message.html
https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.updateShareMenu.html
demo代码:
// 用户点击分享 onShareAppMessage(res) { // isPrivateMessage: true转发私密消息=>然后通过 wx.updateShareMenu 接口声明本次分享的消息为私密消息,私密消息具有不可二次转发性。 wx.updateShareMenu({ isPrivateMessage: true, success () { }, fail () {} }) return { title: "", // 自定义分享标题 imageUrl: "", // 自定义分享图片 path: "", // 自定义分享页面路径,默认本页面路径 }; },
标签:自定义,updateShareMenu,二次,私密,转发,分享,wx From: https://www.cnblogs.com/520BigBear/p/17296458.html