调用wx.getSetting查询模板消息的订阅状态,如果用户的授权状态变了,接口返回结果会不会变?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:19 2486 0 全屏看文

AI助手支持GPT4.0

调用wx.getSetting查询模板消息的订阅状态,如果用户的授权状态变了,接口返回结果会不会变?

调用wx.getSetting,withSubscriptions设置为true,返回的订阅消息授权状态会随着用户操作而变化吗?

比如用户一开始选择“允许”,并勾选了“总是保持以上选择”,后续又从小程序设置里面关闭了对该条消息的授权;那么此时我调用wx.getSetting ,返回结果里该条消息是accept还是reject?

call wx.getSetting With subscriptions set to true, will the authorization status of the returned subscription message change with the user's operation? For example, at the beginning, the user selects "allow" and checks "always keep the above selection", and then turns off the authorization of this message from the applet settings. At this time, I call wx.getSetting Is the message in the returned result accept or reject?

回答:

圣殿骑士:

返回的 accept和reject 是不会变的

除非用户主动 去修改,或者 你用wx.getSetting去修改

还有一种就是用户删除 小程序

寒寒努力成为高级社畜吧!🐝:用户主动去修改,是什么样的场景呢

-EOF-

AI助手支持GPT4.0