parent
b7aacb61e4
commit
85dc4a7ddc
|
|
@ -224,17 +224,17 @@ namespace Guru
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="status"></param>
|
/// <param name="status"></param>
|
||||||
/// <param name="channel"></param>
|
/// <param name="channel"></param>
|
||||||
/// <param name="others"></param>
|
/// <param name="scene"></param>
|
||||||
public static void AttResult(string status, string type = "custom", string others = "")
|
public static void AttResult(string status, string type = "custom", string scene = "")
|
||||||
{
|
{
|
||||||
SetAttProperty(status);
|
SetAttProperty(status);
|
||||||
Debug.Log($"{TAG} AttResult: {status} type:{type} others:{others}");
|
Debug.Log($"{TAG} AttResult: {status} type:{type} others:{scene}");
|
||||||
var dict = new Dictionary<string, dynamic>()
|
var dict = new Dictionary<string, dynamic>()
|
||||||
{
|
{
|
||||||
{ ParameterItemCategory, status },
|
{ ParameterItemCategory, status },
|
||||||
{ "type", type }
|
{ "type", type }
|
||||||
};
|
};
|
||||||
if(!string.IsNullOrEmpty(others)) dict[ParameterItemName] = others;
|
if(!string.IsNullOrEmpty(scene)) dict[ParameterItemName] = scene;
|
||||||
LogEvent(EventATTResult, dict);
|
LogEvent(EventATTResult, dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ namespace Guru
|
||||||
$"{nameof(language)}: {language}, {nameof(locale)}: {locale}, {nameof(deviceToken)}: {deviceToken}, {nameof(deviceType)}: {deviceType}, " +
|
$"{nameof(language)}: {language}, {nameof(locale)}: {locale}, {nameof(deviceToken)}: {deviceToken}, {nameof(deviceType)}: {deviceType}, " +
|
||||||
$"{nameof(pushType)}: {pushType}, {nameof(appIdentifier)}: {appIdentifier}, {nameof(appVersion)}: {appVersion}, {nameof(brand)}: {brand}, " +
|
$"{nameof(pushType)}: {pushType}, {nameof(appIdentifier)}: {appIdentifier}, {nameof(appVersion)}: {appVersion}, {nameof(brand)}: {brand}, " +
|
||||||
$"{nameof(model)}: {model}, {nameof(timezone)}: {timezone}, {nameof(pushNotificationEnable)}: {pushNotificationEnable}, " +
|
$"{nameof(model)}: {model}, {nameof(timezone)}: {timezone}, {nameof(pushNotificationEnable)}: {pushNotificationEnable}, " +
|
||||||
$"{nameof(firebaseAppInstanceId)}: {firebaseAppInstanceId}, {nameof(idfa)}: {idfa}, {nameof(adid)}: {adid}, {nameof(gpsAdid)}: {gpsAdid}";
|
$"{nameof(firebaseAppInstanceId)}: {firebaseAppInstanceId}, {nameof(idfa)}: {idfa}, {nameof(adid)}: {adid}, {nameof(gpsAdid)}: {gpsAdid}, {nameof(userUuid)}: {userUuid}";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Guru
|
||||||
{
|
{
|
||||||
DeviceData deviceData = new DeviceData();
|
DeviceData deviceData = new DeviceData();
|
||||||
deviceData.pushNotificationEnable = _isPushEnabled;
|
deviceData.pushNotificationEnable = _isPushEnabled;
|
||||||
this.Log($"send deviceData:{deviceData}");
|
UnityEngine.Debug.Log($"[SDK] --- Send DeviceData:{deviceData}");
|
||||||
var request = new UnityWebRequest(RequestURL, "POST");
|
var request = new UnityWebRequest(RequestURL, "POST");
|
||||||
request.uploadHandler = new UploadHandlerRaw(Encoding.UTF8.GetBytes(JsonUtility.ToJson(deviceData)));
|
request.uploadHandler = new UploadHandlerRaw(Encoding.UTF8.GetBytes(JsonUtility.ToJson(deviceData)));
|
||||||
request.downloadHandler = new DownloadHandlerBuffer();
|
request.downloadHandler = new DownloadHandlerBuffer();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue