本地调试接口 storage.setUserInteractiveData, 提示错误信息
errCode: -604104 | errMsg: system error: error code: -604104
at new CloudSDKError (... ...\node_modules\wx-server-sdk\index.js:6389:28)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
上传后,在云端测试,提示错误信息:
Error: errCode: -501007 invalid parameters | errMsg: storage.setUserInteractiveData:fail Invalid request param
at new CloudSDKError (/var/user/node_modules/wx-server-sdk/index.js:6389:28
请问该API 正确的使用方式?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
代码片段:
const result = await cloud.openapi.storage.setUserInteractiveData({
openid: "XXXXXXXXXXXX",
kvList: [{
key: '1',
value: 49
}]
})
.catch(err => {
console.error(err);
return {
errMsg: err.errMsg
};
})
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
目的:后台可以设置用户的互动数据
我去 我也是这样 本地调试 报
云端测试 就报 参数不合法
我调的是这个接口storage.setUserStorage