[6.1.0]对HDMap版本号进行裁剪

This commit is contained in:
xuxinchao
2023-09-19 16:09:23 +08:00
parent 53e534a4f0
commit c5cf6d63f8

View File

@@ -376,7 +376,8 @@ class SystemVersionView @JvmOverloads constructor(
*/
override fun onAutopilotStatusRespByQuery(status: SystemStatusInfo.StatusInfo) {
if(status.hdMapVer!= null && status.hdMapVer.isNotEmpty()){
AppConfigInfo.adHdMapVersion = status.hdMapVer
//对地图版本进行截取
AppConfigInfo.adHdMapVersion = status.hdMapVer.substringAfter("/hadmap_data/").substringBefore(".sqlite")
updateAdHdMapVersion()
}
@@ -390,7 +391,8 @@ class SystemVersionView @JvmOverloads constructor(
*/
override fun onSystemStatus(statusInf: SsmInfo.SsmStatusInf) {
if(statusInf.hdMapVer!= null && statusInf.hdMapVer.isNotEmpty()){
AppConfigInfo.adHdMapVersion = statusInf.hdMapVer
//对地图版本进行截取
AppConfigInfo.adHdMapVersion = statusInf.hdMapVer.substringAfter("/hadmap_data/").substringBefore(".sqlite")
updateAdHdMapVersion()
}
}