wx.setStorageSync这个api在微信后台有时会报错
发布于 6 年前 作者 liguo 5383 次浏览 来自 官方Issues

APP-SERVICE-SDK:setStorageSync:fail;at pages/bargain/product/index page onShareAppMessage function

Error: APP-SERVICE-SDK:setStorageSync:fail

at setStorageSync (https://lib/WASubContext.js:1:1016230)

at r.<computed> (https://lib/WASubContext.js:1:1012304)

at Object.Ab.<computed> (https://lib/WASubContext.js:1:1018351)

at Object.p.<computed> [as setStorageSync] (https://lib/WASubContext.js:1:1167288)

at Object.<anonymous> (https://lib/WASubContext.js:1:440260)

at Object.<anonymous> (https://lib/WASubContext.js:1:1165479)

at Function.<anonymous> (https://lib/WASubContext.js:1:1165609)

at Object.<anonymous> (https://lib/WASubContext.js:1:397115)

at be.onShareAppMessage (https://usr//pages/bargain/app-service.js:1931:5682)

at be.e.<computed> [as onShareAppMessage] (https://miniprogram:///common/Tracker/wrapper.js:34:55)

1 回复

加个 try catch

回到顶部