- 当设置_"usePrivacyCheck_: true,chooseLocation无法使用?
"__usePrivacyCheck__": true, uni.getLocation({ type: 'gcj02', //返回可以用于wx.openLocation的经纬度 success (res) { console.log(res); if (res.errMsg == "getLocation:ok") { const latitude = res.latitude; const longitude = res.longitude; uni.chooseLocation({ latitude, longitude, success(res) { console.log(res,'chooseLocation'); if (res.errMsg =="chooseLocation:ok") { this.detailAddres = res.address; //将解析后的地址进行存储 console.log(this.detailAddres); uni.setStorageSync("publishAddres",res.address); } }, fail: function() {}, complete: function() {} }) }},uni.getLocation不执行,将代码"__usePrivacyCheck__": true,去除后就可以有人知道啥原因嘛;还有使用uni.getPrivacySetting是微信开发工具报错了不知啥原因 WAServiceMainContext.js?t=wechat&s=1693886790044&v=3.0.0:1 TypeError: Cannot read property '0' of undefined at vendor.js? [sm]:19235(env: Windows,mp,1.06.2307260; lib: 3.0.0); 报错代码:uni.addInterceptor({ returnValue: function returnValue(res) { if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) { return res; } return new Promise(function (resolve, reject) { res.then(function (res) { return res[0] ? reject(res[0]) : resolve(res[1]); }); }); } });
2023-09-05 - uni.uploadFile上传成功后?
uni.uploadFile上传成功后的从服务器返还的地址在后台为什么会替换成微信wxfile://tmp_9ff6d2890e33643421f1604e2e98798c0d3aaaa9110c3b1e.jpg的临时路径
2023-07-10