wx.getSetting 参数withSubscriptions为true时无效
wx.getSetting({
withSubscriptions: true,
success (res) {
console.log(res)
// res.authSetting = {
// "scope.userInfo": true,
// "scope.subscribeMessage": true
// }
console.log(res.subscriptionsSetting)
// res.subscriptionsSetting = {
// SYS_MSG_TYPE_INTERACTIVE: 'accept',
// SYS_MSG_TYPE_RANK: 'accept',
// zun-LzcQyW-edafCVvzPkK4de2Rllr1fFpw2A_x0oXE: 'reject',
// ke_OZC_66gZxALLcsuI7ilCJSP2OJ2vWo2ooUPpkWrw: 'ban',
// }
}
})
wx.requestSubscribeMessage({
tmplIds: ['Y-aABRdqzPotRYrBtlIOEa03NisFYoigBE66r99aedA'],
success: res => {
console.log(res)
},
failerr=>{
console.log(err)
},
complete: res=>{
console.log('complete', res)
}
});