diff --git a/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs b/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs index a18ae15f..3019ddd1 100644 --- a/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs +++ b/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs @@ -117,56 +117,45 @@ public class ReadRoom : MonoBehaviour { Debug.LogError("获取房间列表失败!"); } - }public async bool roompanmduan() - { - var response = await gameRoomListInstance.getGameRoomList(); - if (response != null && response.Data != null) - { - if (GlobalData.ServerData.data.isCreater == "Y") - { + } + //public async bool roompanmduan() + //{ + // var response = await gameRoomListInstance.getGameRoomList(); + // if (response != null && response.Data != null) + // { + // if (GlobalData.ServerData.data.isCreater == "Y") + // { - } - roomDataList = response.Data; - Debug.Log($"获取到的房间数量:{roomDataList.Count}"); + // } + // roomDataList = response.Data; + // Debug.Log($"获取到的房间数量:{roomDataList.Count}"); - // 调用方法,动态生成房间元素 - foreach (var room in roomDataList) - { - if (room.Status == "1" || room.Status == "0") - { - bool found = false; // 标记是否找到匹配的用户 ID - if (!isStartRoom) - { - for (int i = 0; i < room.PlayerList.Count; i++) - { - Debug.LogError(GlobalData.ServerData.data.userId); - Debug.LogError(1111111111111111111); - Debug.LogError(room.PlayerList[i].UserId); - if ((GlobalData.ServerData.data.userId == room.PlayerList[i].UserId) && (formattedDate == room.ReserveDate)) - { + // // 调用方法,动态生成房间元素 + // foreach (var room in roomDataList) + // { + // if (room.Status == "1" || room.Status == "0") + // { + // bool found = false; // 标记是否找到匹配的用户 ID + // if (!isStartRoom) + // { + // for (int i = 0; i < room.PlayerList.Count; i++) + // { + // if (false == room.PlayerList[i].) + // { - //传人物职业ID - //Player.CSZS.SetPlayerID(room.PlayerList[i].RoleId); - Debug.Log("可以直接进入房间"); - SceneManager.LoadScene("Tmap 1"); - Debug.Log(room.RoomId); - test.JoinRoom(room.RoomId); - //if,(GlobalData.ServerData.data.openId==) - //isenter = true; - found = true; // 找到匹配用户 ID - break; // 直接跳出循环 - } - } - } - } - } - } - else - { - Debug.LogError("获取房间列表失败!"); - } - } + + // } + // } + // } + // } + // } + // } + // else + // { + // Debug.LogError("获取房间列表失败!"); + // } + //} //主持人直接进入房间要获取的数据 public async void head() { diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index 00b9bc34..b2b5a24b 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -45,7 +45,7 @@ public class LoginPanel : Base grantType = "password", clientId = "e5cd7e4891bf95d1d19206ce24a7b32e", userType = "company_user", - username = "13699802230",//"ZF16c788632",13699802230,13051628292 + username = "ZF16c788632",//"ZF16c788632",13699802230,13051628292 password = "YYL5371!" }; image.gameObject.SetActive (true);