From d92a3e1e38a01be6af7f4f0bc14dd4c60bbf8b3d Mon Sep 17 00:00:00 2001 From: chenxiangxue <910695411@qq.com> Date: Tue, 9 Apr 2024 19:04:55 +0800 Subject: [PATCH] sdff --- .../Resources/UI/LoginPanel/Scripts/LoginPanel.cs | 2 ++ RuralPowerCompetition_yizheng1/Assets/ValDate.cs | 2 +- .../Assets/Zion/Scripts/CXX/MyManage.cs | 12 +++++++----- .../Assets/Zone/Scenes/01_LoginScene.unity | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/RuralPowerCompetition_yizheng1/Assets/Resources/UI/LoginPanel/Scripts/LoginPanel.cs b/RuralPowerCompetition_yizheng1/Assets/Resources/UI/LoginPanel/Scripts/LoginPanel.cs index 32887c25..0fa3f86a 100644 --- a/RuralPowerCompetition_yizheng1/Assets/Resources/UI/LoginPanel/Scripts/LoginPanel.cs +++ b/RuralPowerCompetition_yizheng1/Assets/Resources/UI/LoginPanel/Scripts/LoginPanel.cs @@ -34,6 +34,7 @@ public class LoginPanel :XUIPanel } void Init() { + Debug.Log("初始化登录页面"); instance = this; quitBtn.onClick.AddListener(() => { Application.Quit(); @@ -72,6 +73,7 @@ public class LoginPanel :XUIPanel accountInput.ActivateInputField(); ClickModify(); version.text = ScenesRecorder.instance.version; + Debug.Log("登录页面初始化完成"); } /// /// 修改密码 diff --git a/RuralPowerCompetition_yizheng1/Assets/ValDate.cs b/RuralPowerCompetition_yizheng1/Assets/ValDate.cs index f1e2f219..b4de5e7d 100644 --- a/RuralPowerCompetition_yizheng1/Assets/ValDate.cs +++ b/RuralPowerCompetition_yizheng1/Assets/ValDate.cs @@ -20,7 +20,7 @@ public class ValDate : MonoBehaviour Debug.Log("===================="); if (!fileChecked) { - Application.Quit(); + //Application.Quit(); } } diff --git a/RuralPowerCompetition_yizheng1/Assets/Zion/Scripts/CXX/MyManage.cs b/RuralPowerCompetition_yizheng1/Assets/Zion/Scripts/CXX/MyManage.cs index b2de09c2..daa939ae 100644 --- a/RuralPowerCompetition_yizheng1/Assets/Zion/Scripts/CXX/MyManage.cs +++ b/RuralPowerCompetition_yizheng1/Assets/Zion/Scripts/CXX/MyManage.cs @@ -10,7 +10,6 @@ using SGUnitySDK.Services.HTTP; using SGUnitySDK.Utils; using System; using RuralPower; -using static UnityEditor.PlayerSettings; using System.Linq; public class MyManage : MonoBehaviour @@ -40,8 +39,8 @@ public class MyManage : MonoBehaviour //初始化 #if UNITY_EDITOR - SGStartParamsService.GetInstance().setMode("eyJtb2RlIjo1LCJwbGFuTG9jYWxQYXRoIjoiRDpcXFVzZXJGaWxlc1xc5Yac55S156ue6LWb5a+55o6lXFzmoYjkvoszLnppcCIsInByYWN0aXNlSWQiOiI1NyIsInN0dVVzZXJJZCI6IjM4NyIsImFwcElkIjoiNTUiLCJleGFtSWQiOiItMSIsInRlYWNocGxhbklkIjoiMyIsImNvdXJzZUlkIjoiLTEifQ=="); - SGStartParamsService.GetInstance().setToken("74c05c8d-3915-4bb7-a1b2-1d643ad5d145"); + SGStartParamsService.GetInstance().setMode("eyJtb2RlIjo1LCJwbGFuTG9jYWxQYXRoIjoiRDpcXFVzZXJGaWxlc1xc5Yac55S156ue6LWb5a+55o6lXFzmoYjkvoszLnppcCIsInByYWN0aXNlSWQiOiI1NCIsInN0dVVzZXJJZCI6IjI5OSIsImFwcElkIjoiNjciLCJleGFtSWQiOiItMSIsInRlYWNocGxhbklkIjoiMyIsImNvdXJzZUlkIjoiLTEifQ=="); + SGStartParamsService.GetInstance().setToken("fb2efb8f-99d4-42b4-81e5-728b9b6c78e1"); #endif SGUConfig config = new SGUConfig(); SGUSdk.GetInstance().InitSDK(config); @@ -93,7 +92,6 @@ public class MyManage : MonoBehaviour else { Debug.LogError("获取用户失败:" + responObject1.msg); - return; } } @@ -117,6 +115,7 @@ public class MyManage : MonoBehaviour private void OnGUI() { +#if UNITY_EDITOR if (infos != null && infos.Count > 0) { GUILayout.Label("启动参数:"); @@ -125,6 +124,7 @@ public class MyManage : MonoBehaviour GUILayout.Label(infos[i]); } } +#endif } /// @@ -165,6 +165,8 @@ public class MyManage : MonoBehaviour { RuralPowerAPI ruralPowerAPI=new RuralPowerAPI(); var answers=ruralPowerAPI.GetAnswer(ScenesRecorder.user.ExamId, ScenesRecorder.user.user_id, startMode.teachplanId); + Debug.Log("结束练习:"); + Debug.Log(JsonConvert.SerializeObject(answers)); HttpPractiseService getPractiseInfo = new HttpPractiseService(); ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.practiseId, userData.id, answers); @@ -231,7 +233,7 @@ public class MyManage : MonoBehaviour { RuralPowerAPI ruralPowerAPI = new RuralPowerAPI(); var answers = ruralPowerAPI.GetAnswer(ScenesRecorder.user.ExamId, ScenesRecorder.user.user_id, startMode.teachplanId); - Debug.Log("结束练习:"); + Debug.Log("结束考试:"); Debug.Log(JsonConvert.SerializeObject(answers)); HttpExamService getPractiseInfo = new HttpExamService(); ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.examId, userData.id, answers); diff --git a/RuralPowerCompetition_yizheng1/Assets/Zone/Scenes/01_LoginScene.unity b/RuralPowerCompetition_yizheng1/Assets/Zone/Scenes/01_LoginScene.unity index e28db024..906290f0 100644 --- a/RuralPowerCompetition_yizheng1/Assets/Zone/Scenes/01_LoginScene.unity +++ b/RuralPowerCompetition_yizheng1/Assets/Zone/Scenes/01_LoginScene.unity @@ -559,6 +559,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 36a94b4aefe6d9d4fad12ec4202ff76e, type: 3} m_Name: m_EditorClassIdentifier: + playModeEnum: 0 --- !u!1 &903235946 GameObject: m_ObjectHideFlags: 0