unity中C#环境
版本:LeanCloud-Unity-SDK-20200116.1
appid: p6LA1qftYNK9E1VLXaQMpeNW-MdYXbMMI
使用测试代码
AVClient.Initialize("p6LA1qftYNK9E1VLXaQMpeNW-MdYXbMMI", "ulLxn3********************qInSJ");
async public static void Upload ()
{
var equipBag = new AVObject("GameEquipBag");
equipBag["scale"] = 20;
equipBag["name"] = "装备背包";
await equipBag.SaveAsync();
Debug.Log(equipBag.ObjectId);
}
unity中报错:
AVException: Unauthorized.
按照文档操作,appid和appkey确认是没有错的,是什么造成的呢?