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/41uvReXoYVi3AcJrTwtC3a3fBKGAfXB+6oMbVtU9iPOWD1C7I0ZZh3A8xhQp730bLvbbdZWrpR4eY2RnefAW9EJESHfdDCxnsAIiH7+V/gAieF7bN0G5uifx/OxQl5pogovrLWLmZ+cw3QnMLX1kY=
+ trGx7eK881e5S2t4Hg2fu9WpIrLOmp7vaAKF4Q7BwEX8x/mshQEHM6eH6oJczHhD+JU5QJvTg4CA6x/63C/lKfg6pwvmx3++MkITKjHhYLmI5HPS7G9SS98l1cdVx+BsK+YrWs2g97LHlDqqKs0busv9Kz3vZ/mIOHhL52OGthk7SBSL0Nbq5rCCyErQEKPk3HmVmF2nJTam3d1PK0OT7I4IH5Szn9CXt1R3kk1Y2NZb3GIrcPUaQ7+75/DlVL05Leabc/eMi/ghhyCqOotHnLw8uNf3kK6QvD/bv3C4Ikdy1ZYBpENz74OMeINWAEXZyARLgs4EryA+6F7Fw3magQ==
+
\ No newline at end of file
diff --git a/Assets/Resources/LYTWebGL/RSA.txt.meta b/Assets/Resources/LYTWebGL/RSA.txt.meta
new file mode 100644
index 0000000..4c11c38
--- /dev/null
+++ b/Assets/Resources/LYTWebGL/RSA.txt.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: fa05fa85bd33f6c4ca626c1e0317d53d
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/WebPlatform.meta b/Assets/WebPlatform.meta
new file mode 100644
index 0000000..3c10baa
--- /dev/null
+++ b/Assets/WebPlatform.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 1313d4092ca8d554bb23e331d88db6d1
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/WebPlatform/LaiYiTe.meta b/Assets/WebPlatform/LaiYiTe.meta
new file mode 100644
index 0000000..46d8f71
--- /dev/null
+++ b/Assets/WebPlatform/LaiYiTe.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 8f4e4f808ac25d946affe317d1b81545
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/WebPlatform/LaiYiTe/LYTWebGLHelper.cs b/Assets/WebPlatform/LaiYiTe/LYTWebGLHelper.cs
new file mode 100644
index 0000000..dfbed5b
--- /dev/null
+++ b/Assets/WebPlatform/LaiYiTe/LYTWebGLHelper.cs
@@ -0,0 +1,223 @@
+using Newtonsoft.Json;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.IO;
+using System.Runtime.InteropServices;
+using System.Security.Cryptography;
+using System.Text;
+using UnityEngine;
+using UnityEngine.Events;
+using UnityEngine.Networking;
+
+public class LYTWebGLHelper : MonoBehaviour
+{
+
+
+ public class LabData
+ {
+ public string GUID;
+ public string ExpID;
+ public string HOST = string.Empty;
+ public string PARA1;
+ public string PARA;
+ public string PARA2;
+ }
+#if UNITY_WEBGL
+ [DllImport("__Internal")]
+ private static extern IntPtr GetURLParameter(string name);
+#endif
+ string token = string.Empty;
+
+ LabData labData = new LabData();
+ [SerializeField]
+ private TextAsset RSA;
+ private const int RsaKeySize = 2048;
+
+ public string uploadUrl;
+ public static LYTWebGLHelper Instance;
+ private void Awake()
+ {
+#if UNITY_WEBGL
+ Instance = this;
+ DontDestroyOnLoad(this);
+#endif
+ }
+ public void Init()
+ {
+#if UNITY_WEBGL && !UNITY_EDITOR
+
+ var paramPtr = GetURLParameter("token");
+ if (paramPtr != IntPtr.Zero)
+ {
+ string value = Marshal.PtrToStringUTF8(paramPtr);
+ //token = value.Replace("%2B", "+");
+ token = value.Replace(" ", "+");
+ Marshal.FreeHGlobal(paramPtr); // 释放分配的内存
+ }
+ Debug.LogError("获取的:" + token);
+#endif
+
+
+
+ RSA = Resources.Load