登录测试
This commit is contained in:
parent
bfc4238138
commit
ba8bea73d9
@ -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()
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user