This commit is contained in:
舒荣森 2024-11-01 00:11:15 +08:00
parent 67fd05c93a
commit 2bb149a02d

View File

@ -37,7 +37,7 @@ public class InitInfo : MonoBehaviour
string userponse = await web.SendRequest("http://47.109.133.52/Player/GetListByPhone", "POST", jsonString);
Debug.Log(userponse);
//RootData RootData = LitJson.JsonMapper.ToObject<RootData>(userponse);
//RootData RootData = LitJson.JsonMapper.ToObject<RootData>(userponse
RootData itemList = JsonUtility.FromJson<RootData>(userponse);
Debug.Log(itemList.List[0].Gold);
if (itemList.List == null)