cloudID expired
基础库是2.7.1,wx-server-sdk是最新的版本,我明明获取到cloudID就马上提交了,为什么返回过期呢?开发者工具和客户端后是返回这个错误
< button class = "uploader-text" open-type = "getUserInfo" bindgetuserinfo = "onGetUserInfo" >getUserInfo 敏感数据获取</ button > |
授权后执行云函数
onGetUserInfo(event) { wx.cloud.callFunction({ name: 'users' , data: { cloudID: event.detail.cloudID } }); } |
云函数
exports.main = async (event) => { return Cloud.getOpenData({ list: event.cloudID }); }; |
返回结果
{ "result" : { "list" : [ { "cloudID" : "23_NeynUu-mJFdQqQZQH3NW0m_NUSteJF6bLaQbXJ_fedRtHYE6VSfiAF0kTKQ" , "errCode" : -601006, "errMsg" : "cloudID expired." } ], "errMsg" : "getOpenData:ok" , "errCode" : 0 }, "requestID" : "d479d8b6-ac95-11e9-a24c-525400b2c41b" } |