转发 在 测试版 开发版 没有问题 但是 在正式版 就有问题 不能执行 wx.request 请大神看一下
onShareAppMessage: function (option) {
var that=this
return {
title: '小程序',
desc: '小程序!',
path: '/pages/index/index',
success: function (res) {
var yhqid=option.target.dataset.yhqid;
//获取列表
wx.request({
url: app.globalData.url + '/my_in_coupon',
method: "post",
data: {
coupon_id: yhqid,
openid: wx.getStorageSync('openId'),
},
success: function (res) {
if (res.data.zt == 1) {
wx.showToast({
title: res.data.msg,
icon: 'success',
duration: 2000
})
} else {
wx.showToast({
title: res.data.msg,
icon: 'fail',
duration: 2000
})
}
that.onLoad();
},
})
},
}
}
10月10日起新提交的版本,用户从小程序、小游戏中分享消息给好友时,开发者将无法获知用户是否分享完成,也无法在分享后立即获得群ID。请参考调整指引
转发没有回调的!!!
有的
https://developers.weixin.qq.com/community/develop/doc/000eacab888a20e8a2579099754401
分享没有返回值了!
看来以前写的分享功能要调整了,多谢道友!
没事!道友闭关修炼多年!可见毅力不凡
哈哈!一直在祭炼bug,无暇修炼新的功法,惭愧~惭愧!左道友才是功力非凡!