[6.10.0]OTA升级修改

This commit is contained in:
xuxinchao
2025-02-19 16:43:22 +08:00
parent 67fdb20ffb
commit 8c7044bd65

View File

@@ -225,6 +225,14 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
}
//解析JSON
if(status.otaInfo.productName.isEmpty()){
if(OTAUpgradeConfig.isQuery){
ToastUtils.showLong("暂无待升级任务!")
OTAUpgradeConfig.isQuery = false
}
return
}
val otaUpgradeList = ArrayList<OtaUpgradeInfo>()
val productArray = JSONArray(status.otaInfo.productName)
var upgradeComplete = true
@@ -326,6 +334,11 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
CallerHmiManager.showOTADownloadStatusDialog(true,otaUpgradeList)
CallerOTAManager.invokeOtaDownloadStatus(true)
}
}else{
if(OTAUpgradeConfig.isQuery){
ToastUtils.showLong("暂无待升级任务!")
OTAUpgradeConfig.isQuery = false
}
}
}