背包bug
This commit is contained in:
parent
60ac843684
commit
04e2a5a210
@ -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<ServerRespon111>(response);
|
||||
for (int i = 0; i < serverRespon111.snailCount; i++)
|
||||
bag111 serverRespon111 = JsonConvert.DeserializeObject<bag111>(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);
|
||||
}
|
||||
|
@ -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<ServerResponse18>(response);
|
||||
Debug.Log(serverResponse.message);
|
||||
if (serverResponse.code != 200)
|
||||
{
|
||||
addEventPopUp(serverResponse.message);
|
||||
|
Loading…
Reference in New Issue
Block a user