jssdk自定义分享反馈,设置了js接口安全域名,仍报错?
调用自定义分享接口:updateAppMessageShareData,updateTimelineShareData
报错fail link must be in js secure domain list
公众号配置如下
config权限注入是提示ok的
调用代码如下
wx.ready(function () {
// 自定义分享给微信好友,QQ好友
wx.updateAppMessageShareData({
title: '邀请有礼',
desc: '邀请有礼',
link: 'https://mandian.waimaihongbao.work/invited?invite_code=xxx',
imgUrl: 'https://mallapi.waimaihongbao.work/static/resources/image/619ef7098a936.jpeg'
})
// 自定义分享到朋友圈,QQ空间
wx.updateTimelineShareData({
title: '邀请有礼',
desc: '邀请有礼',
link: 'https://mandian.waimaihongbao.work/invited?invite_code=xxx',
imgUrl: 'https://mallapi.waimaihongbao.work/static/resources/image/619ef7098a936.jpeg'
})
})