开发工具版本:Stable 1.06.2301040
库版本:2.30.0
在开放域的index.js中直接执行
wx.getUserCloudStorage({keyList: ['score']}).then(res => console.log(res));
报错
VM2789 WAGame.js:1 TypeError: Cannot read property 'then' of undefined
at index.js:9
at O (VM2804 WAGameSubContext.js:1)
at :1:60
at doWhenAllScriptLoaded (subContext.js:20)
at HTMLScriptElement.scriptLoaded (subContext.js:31)
at HTMLScriptElement.script.onload (subContext.js:40)(env: Windows,mg,1.06.2301040; lib: 2.29.1)
编辑器看起来有正确的提示
但是一直报错
感谢反馈。小游戏开放数据域内接口不支持promise方式调用。文档已修正。