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 03b310202c..c24d513952 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 @@ -88,6 +88,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); } } @@ -122,19 +136,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