换个手机可能就好了
error occurs:ENOENT: no such file or directory?error occurs:ENOENT: no such file or directory, access '/storage/emulated/0/Android/data/com.tencent.mm/MicroMsg/wxanewfiles/30f161c39a57feda338c6bb898d74792/miniprogramLog/log1 [图片] 我新建了一个飞机小游戏项目,真机调试的时候出现了这个错误。同时,我自己写的项目也出现这个错误,但是在微信开发工具中可以正常运行。请问这是怎么回事啊?
2022-06-03wx.api.setWechatSteps() 这个不能用了吧?
频繁调用 wx.getWeRunData 后端会一直返回运动数据为0的情况,这个怎么回事?const wxLoginInfo = await wxLogin(); wx.getWeRunData({ success: async (weRunData) => { console.log('------------------------------------'); console.log(weRunData); console.log('------------------------------------'); const res = await wx.api.setWechatSteps({ code: wxLoginInfo.code, encryptedData: weRunData.encryptedData, iv: weRunData.iv }); if (res.cd == 0) { this.setData({ wxSteps: res.data.step || 0 }); } else { wx.showToast({ title: res.msg || res.data, icon: 'none', duration: 2000 }); } }, fail: (err) => { wx.getSetting().then((res) => { if (!res.authSetting['scope.werun']) { if (flag) return; wx.showModal({ title: '', content: '请先开启微信运动步数权限', success(res) { if (res.confirm) { wx.openSetting(); } } }); } else { console.log(err); wx.showToast({ title: '获取微信步数失败', icon: 'none', duration: 2000 }); } }); } });
2022-04-05