From 26d975c39e03c229454469a94e4767190f44305c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Tue, 28 Jul 2020 17:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlauncher=E6=9C=AA=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E7=9A=84=E6=97=B6=E5=80=99=E9=81=93=E8=B7=AF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=9F=E8=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scene/road/V2XRoadEventScenario.java | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java index 26d88c9b55..5d2fbf38dc 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/road/V2XRoadEventScenario.java @@ -94,6 +94,20 @@ public class V2XRoadEventScenario extends AbsV2XScenario imp if (V2XServiceManager.getMoGoStatusManager().isMainPageLaunched()) { showWindow(); } + + // 地图主动推送/触发消息 埋点 + String poiType = mV2XMessageEntity.getContent().getPoiType(); + String lat = String.valueOf(mV2XMessageEntity.getContent().getLocation().getLat()); + String lon = String.valueOf(mV2XMessageEntity.getContent().getLocation().getLon()); + String infoId = mV2XMessageEntity.getContent().getNoveltyInfo().getInfoId(); + String style = V2XServiceManager.getMoGoStatusManager().isMainPageOnResume() ? "1" : "2"; + Map properties = new HashMap<>(); + properties.put("dbid", infoId); + properties.put("type", poiType); + properties.put("lng", lon); + properties.put("lat", lat); + properties.put("style", style); + V2XServiceManager.getMogoAnalytics().track(V2XConst.V2X_ROAD_SHOW, properties); } } @@ -128,19 +142,7 @@ public class V2XRoadEventScenario extends AbsV2XScenario imp V2XServiceManager.getMoGoV2XStatusManager().setRoadEventWindowShow(TAG, true); } - // 地图主动推送/触发消息 埋点 - String poiType = mV2XMessageEntity.getContent().getPoiType(); - String lat = String.valueOf(mV2XMessageEntity.getContent().getLocation().getLat()); - String lon = String.valueOf(mV2XMessageEntity.getContent().getLocation().getLon()); - String infoId = mV2XMessageEntity.getContent().getNoveltyInfo().getInfoId(); - String style = V2XServiceManager.getMoGoStatusManager().isMainPageOnResume() ? "1" : "2"; - Map properties = new HashMap<>(); - properties.put("dbid", infoId); - properties.put("type", poiType); - properties.put("lng", lon); - properties.put("lat", lat); - properties.put("style", style); - V2XServiceManager.getMogoAnalytics().track(V2XConst.V2X_ROAD_SHOW, properties); + } @Override