From 85dc4a7ddc425a3f0ff391f08e4414ac2bd62260 Mon Sep 17 00:00:00 2001 From: huyufei Date: Thu, 27 Jun 2024 18:53:24 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=B0=E5=A2=9E=E6=89=93=E5=8D=B0?= =?UTF-8?q?=20DeviceData=20=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: huyufei --- Runtime/GuruCore/Runtime/Analytics/Analytics.Ads.cs | 8 ++++---- .../Runtime/IPM/Scripts/RequestData/DeviceData.cs | 2 +- .../IPM/Scripts/Requests/DeviceInfoUploadRequest.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Runtime/GuruCore/Runtime/Analytics/Analytics.Ads.cs b/Runtime/GuruCore/Runtime/Analytics/Analytics.Ads.cs index 43a235e..776f663 100644 --- a/Runtime/GuruCore/Runtime/Analytics/Analytics.Ads.cs +++ b/Runtime/GuruCore/Runtime/Analytics/Analytics.Ads.cs @@ -224,17 +224,17 @@ namespace Guru /// /// /// - /// - public static void AttResult(string status, string type = "custom", string others = "") + /// + public static void AttResult(string status, string type = "custom", string scene = "") { SetAttProperty(status); - Debug.Log($"{TAG} AttResult: {status} type:{type} others:{others}"); + Debug.Log($"{TAG} AttResult: {status} type:{type} others:{scene}"); var dict = new Dictionary() { { ParameterItemCategory, status }, { "type", type } }; - if(!string.IsNullOrEmpty(others)) dict[ParameterItemName] = others; + if(!string.IsNullOrEmpty(scene)) dict[ParameterItemName] = scene; LogEvent(EventATTResult, dict); } diff --git a/Runtime/GuruCore/Runtime/IPM/Scripts/RequestData/DeviceData.cs b/Runtime/GuruCore/Runtime/IPM/Scripts/RequestData/DeviceData.cs index 7d4727c..7166924 100644 --- a/Runtime/GuruCore/Runtime/IPM/Scripts/RequestData/DeviceData.cs +++ b/Runtime/GuruCore/Runtime/IPM/Scripts/RequestData/DeviceData.cs @@ -72,7 +72,7 @@ namespace Guru $"{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(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}"; } } diff --git a/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/DeviceInfoUploadRequest.cs b/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/DeviceInfoUploadRequest.cs index 7b7a56b..55e28a8 100644 --- a/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/DeviceInfoUploadRequest.cs +++ b/Runtime/GuruCore/Runtime/IPM/Scripts/Requests/DeviceInfoUploadRequest.cs @@ -19,7 +19,7 @@ namespace Guru { DeviceData deviceData = new DeviceData(); deviceData.pushNotificationEnable = _isPushEnabled; - this.Log($"send deviceData:{deviceData}"); + UnityEngine.Debug.Log($"[SDK] --- Send DeviceData:{deviceData}"); var request = new UnityWebRequest(RequestURL, "POST"); request.uploadHandler = new UploadHandlerRaw(Encoding.UTF8.GetBytes(JsonUtility.ToJson(deviceData))); request.downloadHandler = new DownloadHandlerBuffer();