收藏
回答

某用户MAC电脑下wx.setStorage存储失败?

我们有个用户他在mac电脑下wx.setStorage返回{"errMsg":"setStorage:fail write DB data fail"},

他在去年8月份的时候就出现了这个问题,他一开始是没问题的。突然一下就不行了。我以为后面他会自己好,结果到现在也没好。

我们一开始以为是系统或软件的问题。他换了一台mac,登录同样的帐号还是同样的问题。

然后我判断是不是他的存储的内容有问题。因此我弄了最简单的。还是同样的错误。

wx.setStorage({
                  key:'nickname',
                  data:'1212',
                  success:e=>{
                    wx.showToast({
                      title: '1212',
                    })
                  },
                  fail:e=>{
                    resolve(e);
                  }
                });


wx.setStorageSync也报错

{"type":"AppServiceSdkKnownError","stack":"construct@[native code]
n@https://lib/WAService.js:2:1744645
t@https://lib/WAService.js:2:1900131
construct@[native code]
https://lib/WAService.js:2:2315296
n@https://lib/WAService.js:2:2315747
setStorageSync@https://lib/WAService.js:2:2316731
https://lib/WAService.js:2:2315606
https://lib/WAService.js:2:2319015
https://lib/WAService.js:2:1877044
https://lib/WAService.js:2:1621040
https://lib/WAService.js:2:2950949
https://lib/WAService.js:2:2951079
at < at wx.setStorageSync>
https://lib/WAService.js:2:121733
https://usr/app-service.js:8100:1711
https://lib/WAService.js:2:66153
https://lib/WAService.js:2:66261
A@https://lib/WAService.js:2:68714
https://lib/WAService.js:2:32932
n@https://lib/WAService.js:2:32631
at <setTimeout callback function>
https://lib/WAService.js:2:122831
https://lib/WAService.js:2:114779
_onNativeTimer
global code"}


他的系统信息

{
    "safeArea":
    {
        "bottom": 702,
        "height": 702,
        "top": 0,
        "width": 1024,
        "left": 0,
        "right": 1024
    },
    "system": "macOS 11.6.2",
    "version": "7.0.8",
    "brand": "MacBookAir7,2",
    "windowHeight": 702,
    "pixelRatio": 1,
    "platform": "mac",
    "screenHeight": 900,
    "language": "zh_CN",
    "power": 100,
    "statusBarHeight": 22,
    "deviceOrientation": "portrait",
    "windowWidth": 1024,
    "model": "MacBookAir7,2",
    "screenWidth": 1440,
    "fontSizeSetting": 16,
    "SDKVersion": "2.13.2",
    "devicePixelRatio": 2
}


如需微信号我怎么能隐蔽提供啊?现在好像不行。



回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容