[6.3.0] fix status bug of cert
This commit is contained in:
@@ -53,6 +53,7 @@ class CertFileManager : IMoGoCertProvider {
|
||||
return@let
|
||||
}
|
||||
// 安全校验
|
||||
certStatus.set(true)
|
||||
try {
|
||||
ThreadPoolService.execute {
|
||||
PassPortSecret.getInstance()
|
||||
@@ -70,7 +71,7 @@ class CertFileManager : IMoGoCertProvider {
|
||||
"${SceneConstant.M_D_C}$TAG",
|
||||
"onSuccess securityKey:$securityKey , thread:${Thread.currentThread().name}"
|
||||
)
|
||||
certStatus.set(true)
|
||||
certStatus.set(false)
|
||||
deviceCrtFile = securityKey
|
||||
rootCrtFile = rootKey
|
||||
SharedPrefsMgr.getInstance().putString(securityKeyTAG, securityKey)
|
||||
@@ -90,7 +91,7 @@ class CertFileManager : IMoGoCertProvider {
|
||||
)
|
||||
override fun onFailed(errorCode: Int, errorMsg: String) {
|
||||
CallerLogger.d("${SceneConstant.M_D_C}$TAG", "onFailed code:$errorCode, msg:$errorMsg")
|
||||
certStatus.set(true)
|
||||
certStatus.set(false)
|
||||
onError?.invoke("证书下载失败, code:$errorCode, msg:$errorMsg")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user