Commit ca810acf by 宋冰琦

修复通知发送授权问题

parent b511068a
...@@ -220,14 +220,19 @@ export default { ...@@ -220,14 +220,19 @@ export default {
messageAndSave() { messageAndSave() {
wx.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: ['1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU', 'Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM', 'Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74'], tmplIds: ['1uErx-15S-3vuopXSvvsxCeM_Jd-1iZC-nXzd2yW3QU', 'Q4HDwBEvpTXpwtZktqWm4SZOTEuQK1x48xjqjD2GqyM', 'Fu_CPIXa0cnJ4EDdVKqFQ3qqKJccMqt2oorI5mfNq74'],
success: () => { success: (res) => {
uni.setStorageSync('isMessage', 'true') const finalValue = Object.values(res).indexOf('reject')
User.setAllow(1) if(finalValue===-1){
this.saveReserve() uni.setStorageSync('isMessage', 'true')
User.setAllow(1)
this.saveReserve()
}else{
User.setAllow(2)
this.saveReserve()
}
}, },
fail: () => { fail: (err) => {
User.setAllow(2) console.log(err);
this.saveReserve()
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment