diff --git a/meng_yao/Assets/script/ConnactServer/Get_a_voucher.cs b/meng_yao/Assets/script/ConnactServer/Get_a_voucher.cs index dbf654217..69d3e0732 100644 --- a/meng_yao/Assets/script/ConnactServer/Get_a_voucher.cs +++ b/meng_yao/Assets/script/ConnactServer/Get_a_voucher.cs @@ -35,46 +35,11 @@ public class Get_a_voucher : mount Debug.Log("用户所有代金卷" + daijinjuanponse); AllVocherItemRes itemList = JsonUtility.FromJson(daijinjuanponse); Debug.Log(itemList.List.Length); - //for (int i = 0; i < itemList.List.Length; i++) - //{ - // switch (itemList.List[i].Num) - // { - // case 1: - // Floorint[0] += 1; - // break; - // case 2: - // Floorint[1] += 1; - // break; - // case 3: - // Floorint[2] += 1; - // break; - // case 4: - // Floorint[3] += 1; - // break; - // case 5: - // Floorint[4] += 1; - // break; - - // } - //} - - - //foreach (var k in Floorint) - //{ - // Debug.Log("各个楼层的代金卷"+k); - //} + Debug.Log(itemList.List.Length); } - public void ReturnFloor(int num) //判断楼层是否有代金卷 - { - if (Floorint[num - 1] != 0) - { - - } - - - } + // Update is called once per frame diff --git a/meng_yao/Assets/script/ConnactServer/Logo_in.cs b/meng_yao/Assets/script/ConnactServer/Logo_in.cs index 17763125b..4585faccd 100644 --- a/meng_yao/Assets/script/ConnactServer/Logo_in.cs +++ b/meng_yao/Assets/script/ConnactServer/Logo_in.cs @@ -67,7 +67,7 @@ public class Logo_in : mount login.Phone = boxTypes[0].content; //register.Code = boxTypes[0].content; string jsonString = JsonUtility.ToJson(login); - string response = await web.SendRequest("http://47.109.133.52/Player/Register", "POST", jsonString); + string response = await web.SendRequest(web.URL+"/Player/Register", "POST", jsonString); Debug.Log(response); } else if (type == 1)//登录 @@ -77,13 +77,10 @@ public class Logo_in : mount Debug.Log(boxTypes[0].content); //register.Code = boxTypes[0].content; string jsonString = JsonUtility.ToJson(login); - string response = await web.SendRequest("http://47.109.133.52/Player/Login", "POST", jsonString); + string response = await web.SendRequest(web.URL+"/Player/Login", "POST", jsonString); Debug.Log(response); - string daijinjuanponse = await web.SendRequest(web.URL + "/Voucher/GetList", "POST"); - Debug.Log("用户所有代金卷" + daijinjuanponse); - Rootobject root = JsonUtility.FromJson(response); diff --git a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/jinsha.cs b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/jinsha.cs index 76701dcad..9bcdead4c 100644 --- a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/jinsha.cs +++ b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/jinsha.cs @@ -32,12 +32,7 @@ public class jinsha : mount } public int type = 0; - public async void loding() - { - - - } public async void Start() { diff --git a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs index b1ad23569..54daa71c3 100644 --- a/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs +++ b/meng_yao/Assets/script/cultivation_Jinsha_mine_slices/room.cs @@ -144,7 +144,7 @@ public class room : mount newMiner.transform.SetParent(startPos); newMiner.transform.position = startPos.position; - + Buy_succefful = false; } @@ -250,7 +250,7 @@ public class room : mount Mining_Wizard_ID data = JsonUtility.FromJson(response); Use use = new Use(); use.Id = data.Ids[0]; - if (data.Ids[0] != null) + if (use.Id != null) { Buy_succefful = true; }