From 1632a1f0bd7dd31d2d842b3c77c1612c9250bd82 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Sat, 28 Dec 2024 16:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs | 4 +++- xiaofang/Assets/Script/login/login.cs | 7 ++++--- xiaofang/Assets/Script/loginScripts/LoginPanel.cs | 10 ++++------ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs b/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs index 782ab6a1..0c4bad90 100644 --- a/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs +++ b/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs @@ -18,6 +18,7 @@ public class ReadRoom : MonoBehaviour private bool isStartRoom = false;//主持人是否已经点击演练开始 public bool iszongzhihui = false; public int RoleId; + public loginData playerdetail; // Start is called before the first frame update void Start() { @@ -58,7 +59,8 @@ public class ReadRoom : MonoBehaviour { if(GlobalData.ServerData.data.userId==item1.UserId) { - RoleId= item1.RoleId; + playerdetail = GlobalData.ServerData.data; + RoleId = item1.RoleId; if(item1.RoleId==8000)//主持人 { isenter=true; diff --git a/xiaofang/Assets/Script/login/login.cs b/xiaofang/Assets/Script/login/login.cs index 31c962a1..73f75c3f 100644 --- a/xiaofang/Assets/Script/login/login.cs +++ b/xiaofang/Assets/Script/login/login.cs @@ -9,13 +9,14 @@ public class auth_login { //public string clientId = "e5cd7e4891bf95d1d19206ce24a7b32e"; //public string grantType = "password"; - public string grantType; + public string clientId; + public string grantType; public string userType; public string username; public string password; - public string phonenumber; - public string smsCode; + //public string phonenumber; + //public string smsCode; } //public class auth_createTemplate //{ diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index f4726da4..7c67a29c 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -45,10 +45,8 @@ public class LoginPanel : Base grantType = "password", clientId = "e5cd7e4891bf95d1d19206ce24a7b32e", userType = "company_user", - username = " ZF16c788632 ", - password = "YYL5371!", - phonenumber = "", - smsCode = "" + username = "ZF16c788632", + password = "YYL5371!" }; image.gameObject.SetActive (true); // 发送请求 @@ -71,9 +69,9 @@ public class LoginPanel : Base { Debug.LogError(11); ReadRoom.instance.isadministrator=true; - SceneManager.LoadScene(1); + SceneManager.LoadScene("yhj"); } - else if(id.text == "13699802230" && pwd.text == "ZF16c788632") + else if(id.text == "13699802230" && pwd.text == "YYL5371!") { //SceneManager.LoadScene("yhj");