From fbf93db0a42649b53e2847f62ce4f2c94551ed34 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 21 Jun 2023 13:38:42 +0800 Subject: [PATCH] [3.3.0]fix bug of network on main thread --- .../eagle/core/function/startup/stageone/HttpDnsStartUp.kt | 3 --- .../main/java/com/zhidao/support/adas/high/AdasChannel.java | 1 - 2 files changed, 4 deletions(-) diff --git a/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/HttpDnsStartUp.kt b/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/HttpDnsStartUp.kt index 914e9a273f..16b2c06d18 100644 --- a/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/HttpDnsStartUp.kt +++ b/core/function-impl/mogo-core-function-startup/src/main/java/com/mogo/eagle/core/function/startup/stageone/HttpDnsStartUp.kt @@ -323,8 +323,6 @@ class HttpDnsStartUp : AndroidStartup() { //todo 归一处理 private fun getPrReason(msg: String): String { val map = hashMapOf() - map["wifiState"] = - if (NetworkUtils.isAvailable()) "wifi enable" else "wifi disable" map["lat"] = if (CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude != 0.0) CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().latitude else @@ -334,7 +332,6 @@ class HttpDnsStartUp : AndroidStartup() { CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02().longitude else CallerMapUIServiceManager.getGDLocationServer(context!!)!!.lastLon map["reason"] = msg - map["time"] = System.currentTimeMillis() return GsonUtils.toJson(map) } diff --git a/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasChannel.java b/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasChannel.java index 6a3bf570d4..39d394dda7 100644 --- a/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasChannel.java +++ b/libraries/mogo-adas/src/main/java/com/zhidao/support/adas/high/AdasChannel.java @@ -640,7 +640,6 @@ public class AdasChannel implements IAdasNetCommApi, FpgaSocket.IWebSocketConnec * 如果ipcConnectionStatus == Constants.IPC_CONNECTION_STATUS.DISCONNECTED && reason==null 表示主动断开连接 */ private void updateConnectStatus(@Define.IPCConnectionStatus int status, @Nullable String reason) { - Log.d("emArrow", "status:" + status + " , reason :" + reason); log(status, reason); ipcConnectionStatus.set(status); if (status == Constants.IPC_CONNECTION_STATUS.CONNECTED) {