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()) {