wifi环境下,LeanCloud的Unity SDK,
相关代码:
AVFile file = AVFile.CreateFileWithLocalPath("home_bg.png", Path.Combine(Application.persistentDataPath, "home_bg.png"));
file.SaveAsync().ContinueWith(t =>
{
Debug.Log(t.IsFaulted);
if (!t.IsFaulted)
{
fildId = file.ObjectId;
}
else
{
Debug.Log(t.Exception.Message);
Debug.LogException(t.Exception);
}
});
根据文档做的本地文件上传出现错误,下载也有错误。错误为:Exception of type 'System.AggregateException' was thrown.
所有的都是按照Unity数据存储开发指南上面的方法写的,代码也是复制粘贴的。但就是不对!!!!!