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 b0ff686349..84ca0827c7 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); } String json = "{\"exploreWay\":[{\"addr\":\"东城区小黄庄北街2号靠近中国银行(北京安贞桥支行)\",\"userInfo\":{\"userName\":\"玉涛1\",\"sn\":\"E841CC2018PZD20143\",\"userHead\":\"http://img.zhidaohulian.com/fileServer/api/prod/user_info/726761827601/914019cfda5ab4b618e7f00e093eda82.jpg\",\"safeLabelType\":0,\"userId\":726761827601},\"cityName\":\"北京市\",\"uploadType\":\"0\",\"type\":\"CARD_TYPE_ROAD_CONDITION\",\"poiType\":\"10015\",\"infoId\":\"56280492\",\"items\":[{\"url\":\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/E841CC2018PZD20143/E841CC2018PZD20143_20200722112917/PhotoFront_20200722_112918.JPG?sign\\u003dq-sign-algorithm%3Dsha1%26q-ak%3DAKIDCWfcNwD5PXVWLxwejccR3Tiz5zhIkx0T%26q-sign-time%3D1595388896%3B1595396096%26q-key-time%3D1595388896%3B1595396096%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3D2301fa50ff90f5b34f7f7c05a13a15f39abde9eb\",\"illegalCount\":0.0}],\"location\":{\"address\":\"东城区小黄庄北街2号靠近中国银行(北京安贞桥支行)\",\"angle\":0.0,\"lat\":39.968223,\"lon\":116.410857},\"generateTime\":1595388559153,\"distance\":47.0,\"fileType\":0,\"direction\":0,\"canLive\":false}]}"; } @@ -123,19 +137,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