This commit is contained in:
陈向学 2024-04-09 19:04:55 +08:00
parent dea356073e
commit d92a3e1e38
4 changed files with 11 additions and 6 deletions

View File

@ -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("되쩌女충놓迦뺏供냥");
}
/// <summary>
/// ÐÞ¸ÄÃÜÂë

View File

@ -20,7 +20,7 @@ public class ValDate : MonoBehaviour
Debug.Log("====================");
if (!fileChecked)
{
Application.Quit();
//Application.Quit();
}
}

View File

@ -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
}
/// <summary>
@ -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);

View File

@ -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