AlicizaX/Client/Assets/Scripts/Startup/Framework/Procedure/HttpHelper.cs
陈思海 eb38f67131 init
2025-01-23 19:06:48 +08:00

27 lines
798 B
C#

using System.Collections.Generic;
using UnityEngine;
using AlicizaX.Runtime;
public static class HttpHelper
{
private static readonly Dictionary<string, object> DictionaryParams = new Dictionary<string, object>();
public static Dictionary<string, object> GetBaseParams()
{
DictionaryParams["Language"] = Application.systemLanguage.ToString();
DictionaryParams["AppVersion"] = Application.version;
DictionaryParams["DeviceUniqueIdentifier"] = SystemInfo.deviceUniqueIdentifier;
DictionaryParams["Platform"] = PathHelper.GetPlatformName;
#if UNITY_STANDALONE_WIN
DictionaryParams["PackageName"] = Application.productName;
#else
DictionaryParams["PackageName"] = Application.identifier;
#endif
return DictionaryParams;
}
}