提示:反复摸索
前言
查询了众多资料文档,都是说的
-
在 2023年9月15号之前,在 app.json 中配置
__usePrivacyCheck__: true
后,会启用隐私相关功能,如果不配置或者配置为 false 则不会启用。 -
在 2023年9月15号之后,不论 app.json 中是否有配置
__usePrivacyCheck__
,隐私相关功能都会启用。
我这都是2024年了啊,我查了我用的基础库是3.5.3
在mainfest.json里面也添加了__usePrivacyCheck__: true
但是在调用时候一直返回false
wx.getPrivacySetting({
success(res) {
// console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName);
if (res.needAuthorization) {
that.privacyVisible = true;
that.$refs.showPrivacy.init()
} else {
that.privacyVisible = false;
}
}
});
一、益得助手