sdff
This commit is contained in:
parent
dea356073e
commit
d92a3e1e38
|
@ -34,6 +34,7 @@ public class LoginPanel :XUIPanel
|
||||||
}
|
}
|
||||||
void Init()
|
void Init()
|
||||||
{
|
{
|
||||||
|
Debug.Log("놓迦뺏되쩌女충");
|
||||||
instance = this;
|
instance = this;
|
||||||
quitBtn.onClick.AddListener(() => {
|
quitBtn.onClick.AddListener(() => {
|
||||||
Application.Quit();
|
Application.Quit();
|
||||||
|
@ -72,6 +73,7 @@ public class LoginPanel :XUIPanel
|
||||||
accountInput.ActivateInputField();
|
accountInput.ActivateInputField();
|
||||||
ClickModify();
|
ClickModify();
|
||||||
version.text = ScenesRecorder.instance.version;
|
version.text = ScenesRecorder.instance.version;
|
||||||
|
Debug.Log("되쩌女충놓迦뺏供냥");
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ÐÞ¸ÄÃÜÂë
|
/// ÐÞ¸ÄÃÜÂë
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class ValDate : MonoBehaviour
|
||||||
Debug.Log("====================");
|
Debug.Log("====================");
|
||||||
if (!fileChecked)
|
if (!fileChecked)
|
||||||
{
|
{
|
||||||
Application.Quit();
|
//Application.Quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ using SGUnitySDK.Services.HTTP;
|
||||||
using SGUnitySDK.Utils;
|
using SGUnitySDK.Utils;
|
||||||
using System;
|
using System;
|
||||||
using RuralPower;
|
using RuralPower;
|
||||||
using static UnityEditor.PlayerSettings;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
public class MyManage : MonoBehaviour
|
public class MyManage : MonoBehaviour
|
||||||
|
@ -40,8 +39,8 @@ public class MyManage : MonoBehaviour
|
||||||
|
|
||||||
//初始化
|
//初始化
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
SGStartParamsService.GetInstance().setMode("eyJtb2RlIjo1LCJwbGFuTG9jYWxQYXRoIjoiRDpcXFVzZXJGaWxlc1xc5Yac55S156ue6LWb5a+55o6lXFzmoYjkvoszLnppcCIsInByYWN0aXNlSWQiOiI1NyIsInN0dVVzZXJJZCI6IjM4NyIsImFwcElkIjoiNTUiLCJleGFtSWQiOiItMSIsInRlYWNocGxhbklkIjoiMyIsImNvdXJzZUlkIjoiLTEifQ==");
|
SGStartParamsService.GetInstance().setMode("eyJtb2RlIjo1LCJwbGFuTG9jYWxQYXRoIjoiRDpcXFVzZXJGaWxlc1xc5Yac55S156ue6LWb5a+55o6lXFzmoYjkvoszLnppcCIsInByYWN0aXNlSWQiOiI1NCIsInN0dVVzZXJJZCI6IjI5OSIsImFwcElkIjoiNjciLCJleGFtSWQiOiItMSIsInRlYWNocGxhbklkIjoiMyIsImNvdXJzZUlkIjoiLTEifQ==");
|
||||||
SGStartParamsService.GetInstance().setToken("74c05c8d-3915-4bb7-a1b2-1d643ad5d145");
|
SGStartParamsService.GetInstance().setToken("fb2efb8f-99d4-42b4-81e5-728b9b6c78e1");
|
||||||
#endif
|
#endif
|
||||||
SGUConfig config = new SGUConfig();
|
SGUConfig config = new SGUConfig();
|
||||||
SGUSdk.GetInstance().InitSDK(config);
|
SGUSdk.GetInstance().InitSDK(config);
|
||||||
|
@ -93,7 +92,6 @@ public class MyManage : MonoBehaviour
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogError("获取用户失败:" + responObject1.msg);
|
Debug.LogError("获取用户失败:" + responObject1.msg);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,6 +115,7 @@ public class MyManage : MonoBehaviour
|
||||||
|
|
||||||
private void OnGUI()
|
private void OnGUI()
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
if (infos != null && infos.Count > 0)
|
if (infos != null && infos.Count > 0)
|
||||||
{
|
{
|
||||||
GUILayout.Label("启动参数:");
|
GUILayout.Label("启动参数:");
|
||||||
|
@ -125,6 +124,7 @@ public class MyManage : MonoBehaviour
|
||||||
GUILayout.Label(infos[i]);
|
GUILayout.Label(infos[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -165,6 +165,8 @@ public class MyManage : MonoBehaviour
|
||||||
{
|
{
|
||||||
RuralPowerAPI ruralPowerAPI=new RuralPowerAPI();
|
RuralPowerAPI ruralPowerAPI=new RuralPowerAPI();
|
||||||
var answers=ruralPowerAPI.GetAnswer(ScenesRecorder.user.ExamId, ScenesRecorder.user.user_id, startMode.teachplanId);
|
var answers=ruralPowerAPI.GetAnswer(ScenesRecorder.user.ExamId, ScenesRecorder.user.user_id, startMode.teachplanId);
|
||||||
|
Debug.Log("½áÊøÁ·Ï°£º");
|
||||||
|
Debug.Log(JsonConvert.SerializeObject(answers));
|
||||||
|
|
||||||
HttpPractiseService getPractiseInfo = new HttpPractiseService();
|
HttpPractiseService getPractiseInfo = new HttpPractiseService();
|
||||||
ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.practiseId, userData.id, answers);
|
ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.practiseId, userData.id, answers);
|
||||||
|
@ -231,7 +233,7 @@ public class MyManage : MonoBehaviour
|
||||||
{
|
{
|
||||||
RuralPowerAPI ruralPowerAPI = new RuralPowerAPI();
|
RuralPowerAPI ruralPowerAPI = new RuralPowerAPI();
|
||||||
var answers = ruralPowerAPI.GetAnswer(ScenesRecorder.user.ExamId, ScenesRecorder.user.user_id, startMode.teachplanId);
|
var answers = ruralPowerAPI.GetAnswer(ScenesRecorder.user.ExamId, ScenesRecorder.user.user_id, startMode.teachplanId);
|
||||||
Debug.Log("½áÊøÁ·Ï°£º");
|
Debug.Log("½áÊø¿¼ÊÔ£º");
|
||||||
Debug.Log(JsonConvert.SerializeObject(answers));
|
Debug.Log(JsonConvert.SerializeObject(answers));
|
||||||
HttpExamService getPractiseInfo = new HttpExamService();
|
HttpExamService getPractiseInfo = new HttpExamService();
|
||||||
ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.examId, userData.id, answers);
|
ResponObject responObject = getPractiseInfo.UploadAnswer(startMode.examId, userData.id, answers);
|
||||||
|
|
|
@ -559,6 +559,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 36a94b4aefe6d9d4fad12ec4202ff76e, type: 3}
|
m_Script: {fileID: 11500000, guid: 36a94b4aefe6d9d4fad12ec4202ff76e, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
playModeEnum: 0
|
||||||
--- !u!1 &903235946
|
--- !u!1 &903235946
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
Loading…
Reference in New Issue