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数据存储开发指南上面的方法写的,代码也是复制粘贴的。但就是不对!!!!!
推荐主题
主题 | 分类 | 回复 | 浏览 | 活动 |
---|---|---|---|---|
网站云函数开发,本地运行lean up之后,如何停止啊? | 问题讨论 | 1 | 966 | 17-09-30 |
[紧急]如何升级Python及unity本地sdk版本 | 问题讨论 | 12 | 2.5K | 17-10-29 |
推送设备数为0是什么原因 | 问题讨论 | 1 | 646 | 16-09-22 |
如何保持自己的服务器与leancloud登录状态同步 | 问题讨论 | 3 | 1.3K | 16-07-1 |
微信小程序添加header x-lc-session,请求失败 | 数据存储 | 2 | 1.0K | 20-04-1 |