添加数据是可以完成的,在后台也可以看到,在查询有的数据的时候会一直无法正确返回数据
这是查询数据的代码:
AVQuery query = new AVQuery("GuestbookDateSave");
query.FindAsync().ContinueWith(t =>
{
if (t.IsFaulted)
{
Debug.Log("数据接收异常");
Debug.Log(t.Exception.Message.ToString());
}
else
{
Debug.Log("数据接收成功");
foreach (AVObject o in t.Result)
{
Debug.Log(o["Name"]);
Debug.Log(o["MemorialText"]);
Debug.Log(o["MemorialType"]);
Debug.Log(o["DateTime"]);
}
}
});
但是我查询其他的数据却可以返回数据
查询数据成功的代码:
AVQuery<AVObject> query = new AVQuery<AVObject>("ceshishangchuan1");
query.FindAsync().ContinueWith(t =>
{
if (t.IsFaulted)
{
Debug.Log("异常");
}
else
{
Debug.Log("成功");
foreach (AVObject o in t.Result)
{
Debug.Log("zi1" + o["ziduan1"]);
Debug.Log("zi2" + o["ziduan2"]);
}
}
});
两者简直一样,为何一个成功一个不成功。难道说还是有其他的地方是我没有注意的?翻文档也没翻出个所以然来。