我有一个列(“DataDict”)存储类型的Dictionary(假设变量名称是“dataDict”)
最近我更新到Parse Unity 1.6.2,我发现每当我对dataDict进行更新时,它都不会更新到服务器。
例如:
Dictionary<string, object> dict = ParseUser.CurrentUser["DataDict"] as Dictionary<string, object>;
dict["name"] = "something new";
// after I call ParseUser.CurrentUser.SaveAsync()
// the server should have updated the dictionary
// but it's no longer working as what I expected after I've updated to Parse 1.6.2
有谁知道发生了什么事?
我注意到更改日志中列出的一个关键点:
删除了'可变容器'功能,显着提高了性能。
这会影响我的代码吗?我该如何解决?
答案 0 :(得分:0)
我通过调用
解决了这个问题ParseUser.CurrentUser["DataDict"] = dict;