From 0fc80a387efa31047e4a016a53bf4d8211136c2a Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Thu, 22 Jan 2026 14:16:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9F=8B=E7=82=B9=E3=80=91adjust=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E9=97=B4=E6=AF=8F=E6=AC=A1?= =?UTF-8?q?=E9=83=BD=E6=98=AF=20181=20=E7=A7=92=E9=BA=BB=E7=83=A6=E5=B8=AE?= =?UTF-8?q?=E5=BF=99=E6=A3=80=E6=9F=A5=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gamedog/statisticreporter/adjust/AdjustManager.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt b/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt index e64aa03..08a8425 100644 --- a/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt +++ b/StatisticReporter/src/main/java/com/gamedog/statisticreporter/adjust/AdjustManager.kt @@ -78,9 +78,6 @@ class AdjustManager private constructor() { } private fun saveUserType(userType: Int) { - StatisticUtil.reportEvents(StatisticUtil.KEY_adjust_get_success, mapOf("pass_time" to - (System.currentTimeMillis() - mAdjustInitStartMs)/1000 + 1) - ) mSpHelper.saveUserType(userType) } @@ -117,7 +114,7 @@ class AdjustManager private constructor() { enableCostDataInAttribution()*/ onSessionTrackingFailedListener = OnSessionTrackingFailedListener { failSession -> - val test = 111 + } onSessionTrackingSucceededListener = OnSessionTrackingSucceededListener { @@ -172,7 +169,8 @@ class AdjustManager private constructor() { // 计算从初始化开始到归因回调的总耗时(秒数,向上取整) val totalDurationSeconds = kotlin.math.ceil((System.currentTimeMillis() - initStartTime) / 1000.0).toInt() StatisticLogger.d("Adjust初始化到归因回调总耗时: ${totalDurationSeconds}秒") - DataReportManager.reportData("adjust_get_success", mapOf("pass_time" to totalDurationSeconds)) + DataReportManager.reportData(StatisticUtil.KEY_adjust_get_success, mapOf("pass_time" to totalDurationSeconds)) + // 设置当前用户渠道类型 val userChannelType = if (StatisticLogger.isLogEnabled()) {