From e847002173f41d87907717c750685c35176b0066 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Thu, 28 Mar 2024 15:39:37 +0800 Subject: [PATCH] =?UTF-8?q?[6.3.0][Opt]=E6=96=B0=E5=A2=9E=E5=A4=A9?= =?UTF-8?q?=E6=B0=94=E6=95=88=E6=9E=9C=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../function/datacenter/autopilot/telematic/TeleMsgHandler.kt | 1 + .../mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/telematic/TeleMsgHandler.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/telematic/TeleMsgHandler.kt index fd230403ea..ccc80aa15f 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/telematic/TeleMsgHandler.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/telematic/TeleMsgHandler.kt @@ -218,6 +218,7 @@ class TeleMsgHandler : IMsgHandler { } TelematicConstant.WEATHER_SWITCH_STATUS -> { + invokeNettyConnResult("接收到司机屏发过来的天气效果开关数据为:${it.body}") ThreadUtils.runOnUiThread { CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(String(it.body) == "1") } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt index eb5494a5be..405afde054 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt @@ -34,6 +34,7 @@ import com.mogo.eagle.core.function.hmi.ui.tools.SweeperModeChangedConfirmDialog import com.mogo.eagle.core.function.call.unmanned.CallerUnmannedListenerManager import com.mogo.eagle.core.function.hmi.ui.utils.HmiActionLog.Companion.hmiAction import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils +import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.vehicle.SweeperVehicleConfigUtils import com.mogo.eagle.core.utilcode.util.GsonUtils import com.mogo.eagle.core.utilcode.util.ThreadUtils @@ -763,6 +764,7 @@ internal class SOPSettingView @JvmOverloads constructor( } it.layoutParams = params it.setOnCheckedChangeListener { _, isChecked -> + CallerLogger.d(TAG, "发送开关数据:${isChecked}到乘客屏") CallerTelematicManager.sendMsgToAllClients(TelematicConstant.WEATHER_SWITCH_STATUS, (if (isChecked) "1" else "0").toByteArray()) } }