大神 我按照文档写的 {key: "rank", value: JSON.stringify({wxgame: {rank: this.segmentId, update_time: Math.round(new Date().getTime()/1000)}})}之后 游戏中心 排行榜 还是没数据,是不是 wxgame: {rank:this.segmentId 这里需要写成 wxgame: {score:this.segmentId
小游戏中心的排行榜能不能显示var timestamp3 = new Date().getTime(); var value = JSON.stringify({ "wxgame": { "score":parseInt(txt_text), "update_time": timestamp3 }, "cost_ms":36500 }); var kvScore = { key:"score", value:value } console.log(kvScore); var arr = []; arr.push(kvScore); wx.setUserCloudStorage({ KVDataList:arr, success:function(res){ console.log("存储成功"); }, fail:function(res){ console.log("存储失败",res); } }); 不知道哪里有问题
2019-08-01