Tz2/Assets/test.cs

36 lines
916 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using Newtonsoft.Json;
using SGUnitySDK;
using SGUnitySDK.Etys;
using SGUnitySDK.Services.HTTP;
using SGUnitySDK.Services.SGStartParams;
using UnityEngine;
public class test : MonoBehaviour
{
private void Start()
{
SGUConfig SguConfig = new SGUConfig();
SGUSdk.GetInstance().InitSDK(SguConfig);
SGAppStartMode sga = SGUSdk.GetInstance().GetAppStartMode();
if (sga.examId > 0) //考试
{
}
else if (sga.practiseId > 0) //练习
{
}
HttpAuthService getUserInfo = new HttpAuthService();
ResponObject responObject = getUserInfo.GetUserInfo();
string data = responObject.data.ToString();
Debug.Log("GetUserInfo:" + data);
}
}