注释错误代码

This commit is contained in:
GL 2024-11-16 16:01:27 +08:00
parent 57fd5c4756
commit c2de8bb082
3 changed files with 15 additions and 13 deletions

View File

@ -36,12 +36,14 @@ public class AllHouseContro : MonoBehaviour
} }
public async Task battleRoyaleGameDetails()//5.1.1 public async Task battleRoyaleGameDetails()//5.1.1
{ {
foreach (HouseBtn item in HouseBtnList) foreach (HouseBtn item in HouseBtnList)
{ {
item.gameObject.GetComponentInChildren<Button>().onClick.RemoveAllListeners(); item.gameObject.GetComponentInChildren<Button>().onClick.RemoveAllListeners();
item.gameObject.GetComponentInChildren<Button>().onClick.AddListener(item.OnClickBtn); item.gameObject.GetComponentInChildren<Button>().onClick.AddListener(item.OnClickBtn);
item.wn.GetComponent<wuniusj>().show(); //item.wn.GetComponent<wuniusj>().show();
} }
Dictionary<string, string> head511 = new Dictionary<string, string> Dictionary<string, string> head511 = new Dictionary<string, string>
{ {
{ "Authorization", Global.global.serverResponse.data.token } { "Authorization", Global.global.serverResponse.data.token }

View File

@ -95,7 +95,7 @@ public class BettingBtn : MonoBehaviour
if (item.GetComponent<TextBox>().ParentHouse.GetComponent<HouseBtn>().roomNo == int.Parse(room_id)) if (item.GetComponent<TextBox>().ParentHouse.GetComponent<HouseBtn>().roomNo == int.Parse(room_id))
{ {
item.GetComponent<TextBox>().ParentHouse.GetComponent<HouseBtn>().wn.GetComponent<wuniusj>().yingchang(); //item.GetComponent<TextBox>().ParentHouse.GetComponent<HouseBtn>().wn.GetComponent<wuniusj>().yingchang();
item.GetComponent<TextBox>().PlayAni(); item.GetComponent<TextBox>().PlayAni();
ControMoney(item); ControMoney(item);
} }

View File

@ -82,18 +82,18 @@ public class logoPanel : MonoBehaviour
public async void OnClickLoginBtnAsync() public async void OnClickLoginBtnAsync()
{ {
loginbody body = new loginbody
{
userName = userNameField.text,
password = passwordField.text,
verifyCode = int.Parse(verifyCodeField.text)
};
//loginbody body = new loginbody //loginbody body = new loginbody
//{ //{
// userName = "15151658596", // userName = userNameField.text,
// password = "123456", // password = passwordField.text,
// verifyCode = 111111 // verifyCode = int.Parse(verifyCodeField.text)
//}; //};
loginbody body = new loginbody
{
userName = "15151658596",
password = "123456",
verifyCode = 111111
};
string loginResponse = await web.SendRequest(web.URL+"/snail/user/login", "POST", JsonUtility.ToJson(body)); string loginResponse = await web.SendRequest(web.URL+"/snail/user/login", "POST", JsonUtility.ToJson(body));
ServerResponse response = JsonUtility.FromJson<ServerResponse>(loginResponse); ServerResponse response = JsonUtility.FromJson<ServerResponse>(loginResponse);
if (response != null && response.code == 200 && response.data != null) if (response != null && response.code == 200 && response.data != null)