[630][adas] 修复处于PING状态时,无法停止PING问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user