[630][adas] 修复处于PING状态时,无法停止PING问题

This commit is contained in:
xinfengkun
2024-03-15 13:59:47 +08:00
parent fec3d1b8dc
commit 8a8d0bf56a
11 changed files with 251 additions and 122 deletions

View File

@@ -1,10 +1,12 @@
package com.mogo.eagle.core.function.call.cloud
import com.elegant.analytics.utils.Base64
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.deva.chain.ChainConstant
import com.mogo.eagle.core.function.api.cloud.IMoGoCertProvider
import com.mogo.eagle.core.function.call.base.CallerBase
import com.zhjt.service.chain.ChainLog
import java.nio.charset.StandardCharsets
object CallerCloudCertManager {
@@ -25,10 +27,18 @@ object CallerCloudCertManager {
}
fun getDeviceCrtF(): String? {
return certProviderApi.getDeviceCrtF()
var crt = certProviderApi.getDeviceCrtF()
if (!crt.isNullOrEmpty()) {
crt = String(Base64.decode(crt, Base64.NO_WRAP), StandardCharsets.UTF_8)
}
return crt
}
fun getRootCrtF(): String? {
return certProviderApi.getRootCrtF()
var crt = certProviderApi.getRootCrtF()
if (!crt.isNullOrEmpty()) {
crt = String(Base64.decode(crt, Base64.NO_WRAP), StandardCharsets.UTF_8)
}
return crt
}
}