setUserCloudStorage:fail失败,err_code: 1是什么意思?
this.wx.removeUserCloudStorage({
keyList: ['nickname', 'rankScore']
}).then(
this.wx.setUserCloudStorage({
KVDataList: [
{key: 'nickname', value: this.player_nickname},
{key: 'rankScore', value: this.game_score.toString()}
]
}).then((res) => {
console.log('存储到云空间成功:', res)
console.log('存储的内容为:', [
{key: 'nickname', value: this.player_nickname},
{key: 'rankScore', value: this.game_score.toString()}
])
}
).catch((err) => {
console.log('存储到云空间失败:', err)
console.log('存储的内容为:', [
{key: 'nickname', value: this.player_nickname},
{key: 'rankScore', value: this.game_score.toString()}
])
})
).catch((err) => {
console.log('删除云空间数据失败' + err)
})
代码如上,不是稳定会标题那个错,有的时候还能成功,有的时候就失败,err_code: 1是什么意思,有没有大佬帮忙指导指导