- 一次性订阅消息后台推送一直是43101?
{"errcode":43101,"errmsg":"user refuse to accept the msg rid: 66f62633-37906e90-07b0cac6"} 2024-09-27 11:27:47.661 WARN 5732 --- [io-22919-exec-6] wx.getSetting({ withSubscriptions: true, success(res) { console.log(res.subscriptionsSetting) if (res.subscriptionsSetting.mainSwitch) { let itemSettings = res.subscriptionsSetting.itemSettings; console.log('itemSettings', itemSettings) if (itemSettings) { if (itemSettings['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] != 'accept') { wx.showModal({ title: '提示', content: '检测到您未开启订阅消息,是否前往设置?', success(res) { if (res.confirm) { wx.openSetting({ withSubscriptions: true, success: (openSetRes)=> { wxSubmsgFail(openSetRes) }, fail: function(err) { } }); } } }) } uni.requestSubscribeMessage({ tmplIds: ['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'], success(res) { if (res.errMsg == 'requestSubscribeMessage:ok') { if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'accept') { _saveOrUpdate(true) uni.showToast({ title: '订阅消息成功~' }); console.log('requestSubscribeMessage',true) } if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'reject') { _saveOrUpdate(false) uni.showToast({ title: '订阅消息失败~' }); console.log('requestSubscribeMessage',false) } } } }) } else { uni.requestSubscribeMessage({ tmplIds: ['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'], success(res) { if (res.errMsg == 'requestSubscribeMessage:ok') { if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'accept') { _saveOrUpdate(true) uni.showToast({ title: '订阅消息成功~' }); console.log('requestSubscribeMessage',true) } if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'reject') { _saveOrUpdate(false) uni.showToast({ title: '订阅消息失败~' }); console.log('requestSubscribeMessage',false) } } } }) } } else { if (res.subscriptionsSetting.itemSettings) { wx.showModal({ title: '提示', content: '检测到您未开启订阅消息,是否前往设置?', success(res) { if (res.confirm) { wx.openSetting({ withSubscriptions: true, success: (openSetRes)=> { wxSubmsgFail(openSetRes) }, fail: function(err) { } }); } } }) } uni.requestSubscribeMessage({ tmplIds: ['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'], success(res) { if (res.errMsg == 'requestSubscribeMessage:ok') { if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'accept') { _saveOrUpdate(true) uni.showToast({ title: '订阅消息成功~' }); console.log('requestSubscribeMessage',true) } if (res['PhwVDy9PilecpFbpZKYm9YrqC6NtgUoFXF5D3dbVofo'] == 'reject') { _saveOrUpdate(false) uni.showToast({ title: '订阅消息失败~' }); console.log('requestSubscribeMessage',false) } } } }) } } })
09-27 - hardwareDevice.getSnTicket model_id和sn 去哪获取?
hardwareDevice.getSnTicket model_id和sn 去哪获取?
2022-07-06