读取缓存出现的错误
收到有不少客户的反映,大部分是iPhone6s的说我们的小程序提示错误。从后台日志看到了以下错误,从错误提示上理解,应该是调用 getStorage出现了异常,这个是什么问题呀? webviewSDKScriptError
Failed get storage group metadata;getGlobalStorage:fail:access denied
Error: Failed get storage group metadata
at Ke (<anonymous>:44:20578)
at <anonymous>:44:23185
at Object.w (<anonymous>:41:2398)
at Object.ret.invokeCallbackHandler (<anonymous>:21:28)
at <anonymous>:1:67 堆栈信息 error webviewSDKScriptError Failed get storage group metadata;getGlobalStorage:fail:access denied Error: Failed get storage group metadata at Ke (<anonymous>:44:20578) at <anonymous>:44:23185 at Object.w (<anonymous>:41:2398) at Object.ret.invokeCallbackHandler (<anonymous>:21:28) at <anonymous>:1:67 webviewSDKScriptError Failed get storage group metadata;getGlobalStorage:fail:access denied Error: Failed get storage group metadata at Ke (<anonymous>:44:20578) at <anonymous>:44:23185 at Object.w (<anonymous>:41:2398) at Object.ret.invokeCallbackHandler (<anonymous>:21:28) at <anonymous>:1:67 以下是在app.js写的调用方法 //获取缓存 getStorage(key) { return new Promise((resolve, reject) => { wx.getStorage({ key: key, success: function (res) { resolve(res.data); }, fail: function (res) { resolve(null); } }) }) }