if (wx.getPrivacySetting) {
wx.getPrivacySetting({
success: res => {
console.log("是否需要授权:", res.needAuthorization, "隐私协议的名称为:", res.privacyContractName)
if (res.needAuthorization) {
console.log(">>>>>>>>>>>>>>>>>>>>>2.5");
this.showPrivacyPopup = true;
} else{
this.triggerEvent("agree")
}
},
fail: () => { },
complete: () => { },
})
} else {
console.log("低版本基础库不支持 wx.getPrivacySetting 接口,隐私接口可以直接调用");
}
打印结果:

哥们,解决了吗,我也是一直返回false,而且明明隐私协议已经配置了,但是通过open接口返回的是文档的更新时间是1970.1.1。。。