diff --git a/TheStrongestSnail/Assets/Scenes/logo.unity b/TheStrongestSnail/Assets/Scenes/logo.unity index 294c3bb..fda156c 100644 --- a/TheStrongestSnail/Assets/Scenes/logo.unity +++ b/TheStrongestSnail/Assets/Scenes/logo.unity @@ -4157,6 +4157,9 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c7e45ea47af233042aae50e5524d917e, type: 3} m_Name: m_EditorClassIdentifier: + userNameField: {fileID: 2007997901} + passwordField: {fileID: 2068924169} + verifyCodeField: {fileID: 345431930} pwdBtn: {fileID: 1969202727} yzmBtn: {fileID: 622588872} sjh: {fileID: 1074421265} @@ -4164,3 +4167,4 @@ MonoBehaviour: mm: {fileID: 0} zh: {fileID: 0} loginBtn: {fileID: 2003261318} + rigistBtn: {fileID: 0} diff --git a/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs b/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs index c88fdef..7bb4b43 100644 --- a/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs +++ b/TheStrongestSnail/Assets/Scripts/Login/UI/logoPanel.cs @@ -10,6 +10,9 @@ using static LoginAndGetToken; public class logoPanel : MonoBehaviour { + public InputField userNameField; + public InputField passwordField; + public InputField verifyCodeField; public Button pwdBtn; public Button yzmBtn; public GameObject sjh; @@ -40,9 +43,9 @@ public class logoPanel : MonoBehaviour { loginbody body = new loginbody { - userName = "15151658596", - password = "123456", - verifyCode = 111111 + userName = userNameField.text, + password = passwordField.text, + verifyCode = int.Parse(verifyCodeField.text) }; string jsonBody = JsonUtility.ToJson(body);