[6.3.0] fix cert null bug and add func of request cert file

This commit is contained in:
EmArrow
2024-03-13 18:30:44 +08:00
parent 86a8509237
commit 52daec6775
5 changed files with 38 additions and 7 deletions

View File

@@ -1,8 +1,10 @@
package com.mogo.eagle.core.function.call.cloud
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
object CallerCloudCertManager {
@@ -12,6 +14,12 @@ object CallerCloudCertManager {
MogoServicePaths.PATH_CERT_DOWN_LOAD_PROVIDER
)
@ChainLog(
linkChainLog = ChainConstant.CHAIN_TYPE_STATUS,
linkCode = ChainConstant.CHAIN_SOURCE_HMI,
nodeAliasCode = ChainConstant.CHAIN_CODE_CERT_REQUEST,
paramIndexes = [-1]
)
fun certFileDownLoad(onError: ((String) -> Unit)? = null) {
certProviderApi.certificateDownLoad(onError)
}