const tmplIds = appKey == 'wxc810ad0a8...' ?
['CRM9fXBZ6XziCQru85mRV','LX2DgSYb6I-KYkE','AqhevOdpr31B1p7ui8']
: ['2LxePnsLXdzwG2m36G0F6Y','_VkRbmffP-etVbgy4Sj-kNA','ceOCQnyYrsEJV2ogLI']//多个tmpids用数组
wx.requestSubscribeMessage({
tmplIds: tmplIds,
success: async (res) => {
console.log('tmplIds',res);
const list = tmplIds.filter(item => res[item] == 'accept').join()//用accept判断是否订阅
//处理订阅成功后的逻辑
},
fail(e){
linkUrl(info, query)
}
})
04-18
2528
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-02
498
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-17
429
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-24
581
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)