From 5b1735534b9fdb7521cad5a07b7ee8ae4c56decb Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 30 Nov 2021 16:07:32 +0800 Subject: [PATCH 1/6] =?UTF-8?q?[Fix]=E4=BC=98=E5=8C=96=E4=B8=8B=E7=BB=BF?= =?UTF-8?q?=E7=81=AF=E9=80=9A=E8=A1=8C=E6=8F=90=E7=A4=BA=E7=9A=84=E7=AD=96?= =?UTF-8?q?=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function/v2x/redlightwarning/RedLightWarningManager.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt index a512f5a423..24e5e59f6b 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt @@ -117,7 +117,7 @@ class RedLightWarningManager : IMoGoTrafficLightListener, IMoGoVipSetListener, } else if (arriveTime > remainTime + trafficLightResult.flashYellow + 2) {// 到达时红、黄灯都走完 // 单位Km/h,当前为红灯,推荐速度越慢越容易绿灯通过,且要满足[10,50] val originRemainSpeed = - floor(distance / (remainTime + trafficLightResult.flashYellow) * 3.6).toInt() + floor(distance / (remainTime + trafficLightResult.flashYellow + 2) * 3.6).toInt() when { originRemainSpeed > 50 -> greenLightWarning("10到50") originRemainSpeed in 10..50 -> greenLightWarning("10到$originRemainSpeed") @@ -131,7 +131,7 @@ class RedLightWarningManager : IMoGoTrafficLightListener, IMoGoVipSetListener, redLightWarning() } else if (arriveTime > remainTime + 2) { // 单位Km/h,当前为黄灯,推荐速度越慢越容易绿灯通过,且要满足[10,50] - val originRemainSpeed = floor(distance / remainTime * 3.6).toInt() + val originRemainSpeed = floor(distance / (remainTime + 2) * 3.6).toInt() when { originRemainSpeed > 50 -> greenLightWarning("10到50") originRemainSpeed in 10..50 -> greenLightWarning("10到$originRemainSpeed") @@ -145,7 +145,7 @@ class RedLightWarningManager : IMoGoTrafficLightListener, IMoGoVipSetListener, redLightWarning() } else if (arriveTime < remainTime - 2) { // 单位Km/h,当前为绿灯,推荐速度越快越容易绿灯通过,且要满足[10,50] - val originRemainSpeed = ceil(distance / remainTime * 3.6).toInt() + val originRemainSpeed = ceil(distance / (remainTime - 2) * 3.6).toInt() when { originRemainSpeed < 10 -> greenLightWarning("10到50") originRemainSpeed in 10..50 -> greenLightWarning("${originRemainSpeed}到50") From 541215e8b0fa95599669e5b74a720d102a561fab Mon Sep 17 00:00:00 2001 From: donghongyu Date: Tue, 30 Nov 2021 17:41:55 +0800 Subject: [PATCH 2/6] =?UTF-8?q?[Add]=20=E5=8D=87=E7=BA=A7=E9=AB=98?= =?UTF-8?q?=E7=B2=BE=E5=BA=A6=E5=9C=B0=E5=9B=BESDK=20MAP=5FSDK=5FVERSION?= =?UTF-8?q?=3D2.0.0.12=20=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E9=99=90?= =?UTF-8?q?=E9=80=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index fd2df4f6f8..6ad6bf299a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -80,7 +80,7 @@ MOGO_TRAFFICLIVE_VERSION=1.3.13 MOGO_LOCATION_VERSION=1.3.13 ######## MogoAiCloudSDK Version ######## # 自研地图 -MAP_SDK_VERSION=2.0.0.11 +MAP_SDK_VERSION=2.0.0.12 # websocket WEBSOCKET_VERSION=1.1.7 ## 产品库必备配置,产品库自动对versionCode和versionName版本进行升级 From db9abdb4e72dda987bd8a43819bb9e8fafb83f66 Mon Sep 17 00:00:00 2001 From: lianglihui Date: Tue, 30 Nov 2021 17:59:54 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=89=8D=E8=BD=A6=E5=BC=95=E5=AF=BC?= =?UTF-8?q?=E7=BA=BF=20=E4=BC=98=E5=8C=96=E9=97=AA=E7=83=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=E9=99=90=E9=80=9F=E9=A2=84=E8=AD=A6=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=88=B0=E9=99=90=E9=80=9F=E4=BF=A1=E6=81=AF=E6=97=B6?= =?UTF-8?q?=E4=B8=80=E7=9B=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2x/speedlimit/SpeedLimitDataManager.java | 5 +--- .../routeoverlay/RouteOverlayDrawer.java | 23 ++++++++++++------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/speedlimit/SpeedLimitDataManager.java b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/speedlimit/SpeedLimitDataManager.java index 9144ac50b5..56879ae613 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/speedlimit/SpeedLimitDataManager.java +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/speedlimit/SpeedLimitDataManager.java @@ -40,11 +40,8 @@ public class SpeedLimitDataManager implements IMogoCarLocationChangedListener2 { UiThreadHandler.post(new Runnable() { @Override public void run() { - int speed = (int) (mLocation.getSpeed() * 3.6f); - if (speed > 0 && speedLimmit > 0){ + if (speedLimmit > 0){ CallerHmiManager.INSTANCE.showLimitingVelocity(speedLimmit); - }else { - CallerHmiManager.INSTANCE.disableLimitingVelocity(); } } }); diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/routeoverlay/RouteOverlayDrawer.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/routeoverlay/RouteOverlayDrawer.java index 03560d8f22..fbd7a060ad 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/routeoverlay/RouteOverlayDrawer.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/routeoverlay/RouteOverlayDrawer.java @@ -31,6 +31,7 @@ public class RouteOverlayDrawer { private RouteOverlayDrawer(Context context) { mPolylineOptions = new MogoPolylineOptions(); mPolylineOptions.zIndex(20000f); + mPolylineOptions.setGps(true); // 绘制路径集合 mPolylinePointList = new ArrayList<>(); // 引导线颜色 @@ -115,6 +116,7 @@ public class RouteOverlayDrawer { public void clearMogoRouteOverlay(){ if (mMoGoPolyline != null) { mMoGoPolyline.remove(); + mMoGoPolyline = null; mPolylinePointList.clear(); mPolylineColors.clear(); } @@ -125,19 +127,24 @@ public class RouteOverlayDrawer { } public void drawTrajectoryList(List routeList) { - clearMogoRouteOverlay(); +// clearMogoRouteOverlay(); + mPolylinePointList.clear(); if (routeList != null) { for (MogoLatLng latLng : routeList) { mPolylinePointList.add(latLng); } - mPolylineOptions.setGps(true); - mPolylineColors.addAll(ColorUtils.getGradientAlpha("#002965ED", "#FF2965ED", "#002965ED", mPolylinePointList.size())); - // 替换路径集合 - mPolylineOptions.points(mPolylinePointList); + if (mPolylineColors.isEmpty()){ + mPolylineColors.addAll(ColorUtils.getGradientAlpha("#002965ED", "#FF2965ED", "#002965ED", mPolylinePointList.size())); + } // 线条粗细,渐变,渐变色值 - mPolylineOptions.width(25).useGradient(true).colorValues(mPolylineColors); - // 绘制线 - mMoGoPolyline = mogoOverlayManager.addPolyline(mPolylineOptions); + mPolylineOptions.width(20).useGradient(true).colorValues(mPolylineColors); + if (mMoGoPolyline == null || mMoGoPolyline.isDestroyed()){ + mPolylineOptions.points(mPolylinePointList); + mMoGoPolyline = mogoOverlayManager.addPolyline(mPolylineOptions); + }else { + mMoGoPolyline.setPoints(mPolylinePointList); + } + } } } From b2aef26e163a2cd285605701665ac5c57c2a434d Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 1 Dec 2021 11:43:36 +0800 Subject: [PATCH 4/6] =?UTF-8?q?[add]=20=E6=9B=BF=E6=8D=A23d=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B,=E6=B3=A8=E9=87=8A=E5=88=92=E7=BA=BF=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/res/raw/jiantou.nt3d | Bin 0 -> 8107 bytes .../mogo/module/common/drawer/BaseDrawer.java | 2 +- .../scene/warning/V2XWarningMarker.java | 17 +++++++++++++---- ...cenario_warning_event_data_pedestrians.json | 6 +++--- 4 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 core/mogo-core-res/src/main/res/raw/jiantou.nt3d diff --git a/core/mogo-core-res/src/main/res/raw/jiantou.nt3d b/core/mogo-core-res/src/main/res/raw/jiantou.nt3d new file mode 100644 index 0000000000000000000000000000000000000000..86a3be06532f63f0adb97337046151507a49996a GIT binary patch literal 8107 zcmeHMO=uHA6n?c;>tb$IYgJfQK~a<4q-{!K(pnR1N=<2Np#?>npS2A&KO`$jBVwr_ zC_VHb6{HHHH>F1pRWKgJA9_&{d$IN;BDSUUAc`30bu#U==s|PvG6TEsdvCsZ^X6q{ z@?bZWmHoq_ zuB#YKJ>VNp3~PUnw~(Qq$?i(E07zLX%}-ZLw7(jqyd2?9djL@Gw*b_5sbqGhqeR|= z2|8}{{fazK`gl9jQNCORI8Ef%=@p6b@ph)8Y`;$Z+6(ib#PPhH=_nuh0G^XH;kvI5 z06aScFxLgJcX+kV`j;|VM#%V(ma77|($;#+Bvna7H8uOZ9kjCy$~O?p#a#z3ksqZc z(%Efv`;R+A@u(#bjt6y1CYnGG;A+Su0-=80kb`<}B<5D;A3j#(NZ74()%rDm!lU;^ zeA%RaBHP*-%JzpGVWpv7a%G&vK~y&aawd8rH>}~AKjD4AEH05N- z9lk96I5{?WduZf-TKYb>IKE&a37&cPaTXIj<0?h5ZZp2iHGIoCd=G-?AZZXO5u1Tz zK%5WU2I6KAcOuya;!ecFApRgl%^>bXaSTLhfVZJ24Mb@`wt*-O@GywdK$HgJP87#L zlm>Vkiqb%o24owE(f|*GC=LF1X)v{8{hgkQ;h}a-YI?G-l6<^+{YH{})AQu38bI^W dR`2+co+0|p5Wj4dz~m$>Kgd~Wv>#w2`~vbXmazZ; literal 0 HcmV?d00001 diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/BaseDrawer.java b/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/BaseDrawer.java index 55fd0e3677..c9ba764b07 100644 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/BaseDrawer.java +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/drawer/BaseDrawer.java @@ -216,7 +216,7 @@ public class BaseDrawer { } else if (recognizedType == AdasRecognizedType.classIdStopLine) { return R.raw.stopline; } else if (recognizedType == AdasRecognizedType.classIdWarningArrows) { - return R.raw.stopline; + return R.raw.jiantou; } else if (recognizedType == AdasRecognizedType.classIdUnKnow) { return R.raw.special_vehicle; } else if (recognizedType == AdasRecognizedType.classIdBicycle) { diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/warning/V2XWarningMarker.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/warning/V2XWarningMarker.java index a8cfdbe204..167fe5531e 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/warning/V2XWarningMarker.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/warning/V2XWarningMarker.java @@ -33,7 +33,7 @@ import static com.mogo.module.v2x.V2XServiceManager.getContext; /** * @author liujing - * @description 前方预警marker打点 绘制安全线和预警线 + * @description 前方预警marker打点 绘制安全线和预警线 衡阳交付-取消划线需求,只渲染识别物红色模型移动过程,代码保留 * @since: 2021/3/30 */ public class V2XWarningMarker implements IV2XMarker{ @@ -86,20 +86,26 @@ public class V2XWarningMarker implements IV2XMarker{ WorkThreadHandler.getInstance().postDelayed(() -> { if (carLocation.lat != 0 && carLocation.lon != 0) { //在自车与停止线直线绘制蓝色预警线 - drawSelfCarLine(carLocation.lon, carLocation.lat, bearing); + //衡阳交付-取消划线需求,只渲染识别物红色模型移动过程 + //drawSelfCarLine(carLocation.lon, carLocation.lat, bearing); } else { } //二轮车和行人的渲染和移动 V2XServiceManager.getMarkerManager().removeMarkers(TYPE_MARKER_CLOUD_WARN_DATA); + /* 衡阳交付-取消划线需求,只渲染识别物红色模型移动过程 //获取停止线前方50m坐标点 MogoLatLng warningLocation = Trigonometric.getNewLocation(middleLocationInStopLine, 50, angleForCarMoveDirection()); //停止线向前方50m绘制红色预警线 drawRedWarningLineFrontOfStopLine(mCloundWarningInfo, middleLocationInStopLine, warningLocation); + + */ V2XWarnDataDrawer.getInstance().renderWarnData(mCloundWarningInfo); + //添加停止线marker - handleStopLine(); + //衡阳交付-取消划线需求,只渲染识别物红色模型移动过程 + //handleStopLine(); }, 0); Log.d(TAG, "显示时间为++" + String.valueOf(showTime) + "识别物类型:" + String.valueOf(mCloundWarningInfo.getType())); @@ -108,6 +114,7 @@ public class V2XWarningMarker implements IV2XMarker{ } else { //无停止线 Log.d(TAG, "无停止线"); WorkThreadHandler.getInstance().postDelayed(() -> { + /* 衡阳交付-取消划线需求,只渲染识别物红色模型移动过程 Log.d(TAG, "无停止线" + mCloundWarningInfo.toString()); //绘制识别物与交汇点连线,并且更新连线数据 drawOtherObjectLine(mCloundWarningInfo); @@ -118,6 +125,7 @@ public class V2XWarningMarker implements IV2XMarker{ } else { Log.d(TAG, "数据为空carLocation == null"); } + */ V2XWarnDataDrawer.getInstance().renderWarnData(mCloundWarningInfo); }, 0); @@ -390,7 +398,8 @@ public class V2XWarningMarker implements IV2XMarker{ if (mCloundWarningInfo != null) { mCloundWarningInfo.setCarLocation(new MogoLatLng(latLng.getLatitude(), latLng.getLongitude())); } - drawSelfCarLine(latLng.getLongitude(), latLng.getLatitude(), latLng.getBearing()); + //衡阳交付-取消划线需求,只渲染识别物红色模型移动过程 + //drawSelfCarLine(latLng.getLongitude(), latLng.getLatitude(), latLng.getBearing()); } Log.d(TAG, "车辆行驶轨迹" + String.valueOf(latLng.getLongitude()) + "," + String.valueOf(latLng.getLatitude())); } diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_warning_event_data_pedestrians.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_warning_event_data_pedestrians.json index 198ddc19d6..9dfcee933d 100644 --- a/modules/mogo-module-v2x/src/main/res/raw/scenario_warning_event_data_pedestrians.json +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_warning_event_data_pedestrians.json @@ -1,8 +1,8 @@ { "type": 1, - "lat": 26.851993861219782, - "lon": 112.57065318116094, - "distance": 5.89, + "lat": 26.851909, + "lon": 112.571751, + "distance": 40.119, "collisionLat": 26.85198163866211, "collisionLon": 112.57059540184451, "stopLines": [ From bc445a4282d6da88f30f39c160a0342e9634768b Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Wed, 1 Dec 2021 12:33:09 +0800 Subject: [PATCH 5/6] =?UTF-8?q?[Fix]=E7=94=B1=E4=BA=8E=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=9C=89=E8=AF=AF=E5=B7=AE=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E7=BB=BF=E7=81=AF=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../redlightwarning/RedLightWarningManager.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt index 24e5e59f6b..1f267f14df 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/redlightwarning/RedLightWarningManager.kt @@ -111,13 +111,13 @@ class RedLightWarningManager : IMoGoTrafficLightListener, IMoGoVipSetListener, when { trafficLightStatus.isRed() -> { Logger.d(TAG, "=====当前为红灯=====") - // 到达路口时红灯还没走完(由于多个数据有偏差,红灯预警延长1s,绿灯提示延长2s,多报出错不如少报且准) + // 到达路口时红灯还没走完(由于多个数据有偏差,红灯预警延长1s,绿灯提示延长3s,多报出错不如少报且准) if (arriveTime <= remainTime + 1) { redLightWarning() - } else if (arriveTime > remainTime + trafficLightResult.flashYellow + 2) {// 到达时红、黄灯都走完 + } else if (arriveTime > remainTime + trafficLightResult.flashYellow + 3) {// 到达时红、黄灯都走完 // 单位Km/h,当前为红灯,推荐速度越慢越容易绿灯通过,且要满足[10,50] val originRemainSpeed = - floor(distance / (remainTime + trafficLightResult.flashYellow + 2) * 3.6).toInt() + floor(distance / (remainTime + trafficLightResult.flashYellow + 3) * 3.6).toInt() when { originRemainSpeed > 50 -> greenLightWarning("10到50") originRemainSpeed in 10..50 -> greenLightWarning("10到$originRemainSpeed") @@ -126,12 +126,12 @@ class RedLightWarningManager : IMoGoTrafficLightListener, IMoGoVipSetListener, } trafficLightStatus.isYellow() -> { Logger.d(TAG, "=====当前为黄灯=====") - // 到达路口时黄灯还没走完(由于多个数据有偏差,红灯预警延长1s,绿灯提示延长2s,多报出错不如少报且准) + // 到达路口时黄灯还没走完(由于多个数据有偏差,红灯预警延长1s,绿灯提示延长3s,多报出错不如少报且准) if (arriveTime <= remainTime + 1) { redLightWarning() - } else if (arriveTime > remainTime + 2) { + } else if (arriveTime > remainTime + 3) { // 单位Km/h,当前为黄灯,推荐速度越慢越容易绿灯通过,且要满足[10,50] - val originRemainSpeed = floor(distance / (remainTime + 2) * 3.6).toInt() + val originRemainSpeed = floor(distance / (remainTime + 3) * 3.6).toInt() when { originRemainSpeed > 50 -> greenLightWarning("10到50") originRemainSpeed in 10..50 -> greenLightWarning("10到$originRemainSpeed") @@ -143,9 +143,9 @@ class RedLightWarningManager : IMoGoTrafficLightListener, IMoGoVipSetListener, // 到达路口时绿灯已经走完(由于多个数据有偏差,多报出错不如少报且准,绿灯时间减少一点) if (arriveTime >= remainTime - 1) { redLightWarning() - } else if (arriveTime < remainTime - 2) { + } else if (arriveTime < remainTime - 3) { // 单位Km/h,当前为绿灯,推荐速度越快越容易绿灯通过,且要满足[10,50] - val originRemainSpeed = ceil(distance / (remainTime - 2) * 3.6).toInt() + val originRemainSpeed = ceil(distance / (remainTime - 3) * 3.6).toInt() when { originRemainSpeed < 10 -> greenLightWarning("10到50") originRemainSpeed in 10..50 -> greenLightWarning("${originRemainSpeed}到50") From a62e1ba7987e3862ff79272db913b8ee692750fb Mon Sep 17 00:00:00 2001 From: donghongyu Date: Wed, 1 Dec 2021 14:09:22 +0800 Subject: [PATCH 6/6] =?UTF-8?q?[Add]=20=E5=A2=9E=E5=8A=A0=E4=BA=86Bugly?= =?UTF-8?q?=E8=AE=B0=E5=BD=95userid=E4=B8=BA=E5=B9=B3=E5=8F=B0sn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../mogo/test/crashreport/bugly/BuglyCrashReportProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/crashreport-bugly/src/main/java/com/mogo/test/crashreport/bugly/BuglyCrashReportProvider.java b/test/crashreport-bugly/src/main/java/com/mogo/test/crashreport/bugly/BuglyCrashReportProvider.java index 2b0b914110..7fcfe41577 100644 --- a/test/crashreport-bugly/src/main/java/com/mogo/test/crashreport/bugly/BuglyCrashReportProvider.java +++ b/test/crashreport-bugly/src/main/java/com/mogo/test/crashreport/bugly/BuglyCrashReportProvider.java @@ -36,7 +36,8 @@ public class BuglyCrashReportProvider implements ITestCrashReportProvider { String processName = getProcessName(android.os.Process.myPid()); CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(context); strategy.setUploadProcess(processName == null || processName.equals(packageName)); - + //该用户本次启动后的异常日志用户ID都将是 sn + CrashReport.setUserId(MoGoAiCloudClientConfig.getInstance().getSn()); String productFlavor = DebugConfig.getProductFlavor(); strategy.setAppChannel(productFlavor); Bugly.init(context, CrashReportConstants.buglyAppID, true, strategy);