From 55c79e7d7e7e685880b5ecbb4a2a18a642966157 Mon Sep 17 00:00:00 2001 From: renhaoting <370797079@qq.com> Date: Thu, 22 Jan 2026 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9F=8B=E7=82=B9=E3=80=91=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=BC=80=E5=A7=8B=E6=92=AD=E6=94=BE=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E4=B8=8A=E6=8A=A5=E4=BA=86=E8=A7=82=E7=9C=8B=E6=97=B6?= =?UTF-8?q?=E9=95=BF=E5=92=8C=E6=98=AF=E5=90=A6=E5=AE=8C=E6=95=B4=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E7=9A=84=E5=B1=9E=E6=80=A7=EF=BC=8C=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=88=9A=E5=BC=80=E5=A7=8B=E8=A7=82=E7=9C=8B?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/fragment/HomeItemFragment.kt | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/gamedog/vididin/main/fragments/home/fragment/HomeItemFragment.kt b/app/src/main/java/com/gamedog/vididin/main/fragments/home/fragment/HomeItemFragment.kt index 490a03f..4ec5025 100644 --- a/app/src/main/java/com/gamedog/vididin/main/fragments/home/fragment/HomeItemFragment.kt +++ b/app/src/main/java/com/gamedog/vididin/main/fragments/home/fragment/HomeItemFragment.kt @@ -189,12 +189,19 @@ class HomeItemFragment : AppViewsEmptyViewModelFragment() { private fun sendPlayStopStatistic(isPlayStart: Boolean) { mVideoData?.let { - StatisticUtil.reportEvents(if (isPlayStart) StatisticUtil.KEY_Video_Play_Start else StatisticUtil.KEY_Video_Play_End, - mapOf( - "video_id" to it.id, - "watch_duration" to mCurPlayedSecond.toInt(), //Second - "is_completed" to (mCurPlayedSecond>= mTotalDuration || Math.abs(mTotalDuration - mCurPlayedSecond) < 2), - )) + if (isPlayStart) { + StatisticUtil.reportEvents(StatisticUtil.KEY_Video_Play_Start, + mapOf( + "video_id" to it.id + )) + } else { + StatisticUtil.reportEvents(if (isPlayStart) StatisticUtil.KEY_Video_Play_Start else StatisticUtil.KEY_Video_Play_End, + mapOf( + "video_id" to it.id, + "watch_duration" to mCurPlayedSecond.toInt(), //Second + "is_completed" to (mCurPlayedSecond>= mTotalDuration || Math.abs(mTotalDuration - mCurPlayedSecond) < 2), + )) + } } }