27 lines
798 B
C#
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;
|
||
|
|
}
|
||
|
|
}
|