[6.4.0][Fix]解决FM数据存数据库后反序列化崩溃的问题

This commit is contained in:
chenfufeng
2024-04-22 17:21:42 +08:00
parent c3a94b2db0
commit e7b30a42a4
3 changed files with 41 additions and 7 deletions

View File

@@ -4,11 +4,11 @@ import com.mogo.eagle.core.data.msgbox.FMFilterInfoMsg
import com.mogo.eagle.core.data.msgbox.FMInfoMsg
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
import com.mogo.eagle.core.data.msgbox.MsgBoxType
import com.mogo.eagle.core.data.msgbox.MsgFmData
import com.mogo.eagle.core.function.api.autopilot.IMoGoFaultManagementStateListener
import com.mogo.eagle.core.function.call.base.CallerBase
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
import com.mogo.eagle.core.function.call.trace.CallerTrace
import com.zhjt.mogo.adas.utils.ByteUtil
import fault_management.FmInfo
/**
@@ -64,7 +64,9 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
MsgBoxBean(
MsgBoxType.FMINFO,
FMInfoMsg(list, policyCode,policyTime,false)
)
).apply {
pbStr = ByteUtil.byteArrToHex(fmInfo.toByteArray(),false)
}
)
} else {
// 首次添加 listener
@@ -78,7 +80,9 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
MsgBoxBean(
MsgBoxType.FMINFO,
FMInfoMsg(list, policyCode,policyTime,false)
)
).apply {
pbStr = ByteUtil.byteArrToHex(fmInfo.toByteArray(),false)
}
)
}