diff --git a/TheStrongestSnail/Assets/Scripts/lianghaoLL/BagPanel.cs b/TheStrongestSnail/Assets/Scripts/lianghaoLL/BagPanel.cs index 8ca8464..f042fa3 100644 --- a/TheStrongestSnail/Assets/Scripts/lianghaoLL/BagPanel.cs +++ b/TheStrongestSnail/Assets/Scripts/lianghaoLL/BagPanel.cs @@ -29,13 +29,14 @@ public class BagPanel : MonoBehaviour string response = "";//²âÊÔ response = await web.SendRequest(web.URL + "/snail/user/queryUserBag", "POST","{}", Global.global.CreateHeaders()); Debug.Log(response); - ServerRespon111 serverRespon111 = JsonConvert.DeserializeObject(response); - for (int i = 0; i < serverRespon111.snailCount; i++) + bag111 serverRespon111 = JsonConvert.DeserializeObject(response); + Debug.Log("±³°ü================================"+serverRespon111.data.slotCount); + for (int i = 0; i < serverRespon111.data.snailCount; i++) { GameObject woniuitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/items"),woniuConnect.transform); - + Debug.Log(1); } - for (int i = 0; i < serverRespon111.slotCount; i++) + for (int i = 0; i < serverRespon111.data.slotCount; i++) { GameObject wokeitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/items"),wokeConnect.transform); } diff --git a/TheStrongestSnail/Assets/Scripts/lianghaoLL/DonateTc.cs b/TheStrongestSnail/Assets/Scripts/lianghaoLL/DonateTc.cs index d76d2ed..cb749f2 100644 --- a/TheStrongestSnail/Assets/Scripts/lianghaoLL/DonateTc.cs +++ b/TheStrongestSnail/Assets/Scripts/lianghaoLL/DonateTc.cs @@ -27,17 +27,18 @@ public class DonateTc : BaseUIPanel string response = "";//²âÊÔ if (donatePanelItem.mymode == DonatePanelItem.mode.voluteCoin) { - string body = "{\"toCuteNo\":\"" + (int.Parse(donatePanelItem.Recipient.text)).ToString() + "\",\"voluteCoin\":" + int.Parse(donatePanelItem.GiftQuantity.text) + "}"; + string body = "{\"toCuteNo\":\"" + (long.Parse(donatePanelItem.Recipient.text)).ToString() + "\",\"voluteCoin\":" + int.Parse(donatePanelItem.GiftQuantity.text) + "}"; Debug.Log(body); response = await web.SendRequest(web.URL + "/snail/transfer/voluteCoin", "POST", body, Global.global.CreateHeaders()); } else { - string body = "{\"toCuteNo\":\"" + (int.Parse(donatePanelItem.Recipient.text)).ToString() + "\",\"slotCount\":" + int.Parse(donatePanelItem.GiftQuantity.text) + "}"; + string body = "{\"toCuteNo\":\"" + (long.Parse(donatePanelItem.Recipient.text)).ToString() + "\",\"slotCount\":" + int.Parse(donatePanelItem.GiftQuantity.text) + "}"; Debug.Log(body); response = await web.SendRequest(web.URL + "/snail/transfer/slot", "POST", body, Global.global.CreateHeaders()); } ServerResponse18 serverResponse = JsonConvert.DeserializeObject(response); + Debug.Log(serverResponse.message); if (serverResponse.code != 200) { addEventPopUp(serverResponse.message);