我也遇到这个问题,请问下,你这个解决了吗?
小程序调试 authPrivateMessage 验证私密消息,valid总是false?小程序调试 authPrivateMessage 验证私密消息,valid总是false? 测试代码片段 let acid = "1095_uaWIzgXp3nDXq2uCDxX2evTRMDsXqgHfdWFsSt5rkoWRLQtE1AnGqHCtNp1leQ06wtS8GomvRZ4aKyl-" wx.updateShareMenu({ withShareTicket: true, isPrivateMessage: true, activityId: acid, }) onshow里调用authPrivateMessage onShow:function(options){ let that = this console.log(options) if(options.shareTicket){ wx.authPrivateMessage({ shareTicket: options.shareTicket, success(res) { console.log('authPrivateMessage success', res) that.globalData.valid = res.valid // res // { // errMsg: 'authPrivateMessage:ok' // valid: true // iv: 'xxxx', // encryptedData: 'xxxxxx' // } }, fail(res) { console.log('authPrivateMessage fail', res) } }) } }, 调试结果success,valid一直为false [图片]
07-03