小程序中增加服务消息通知,订阅消息
wx.requestSubscribeMessage({
tmplIds: [''],
success (res) {
if (res.errMsg == "requestSubscribeMessage:ok") {
}
}
})
wx.requestSubscribeMessage({
tmplIds: [''],
success (res) {
if (res.errMsg == "requestSubscribeMessage:ok") {
}
}
})