From 22a3c3fea1dc0eb38054fd8b4aa339056bd3a64d Mon Sep 17 00:00:00 2001 From: AXYChen Date: Tue, 15 Apr 2025 15:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: AXYChen Change-Id: Iaf29a276fb275702607c87883c56105e7e5a7675 --- frameworks/security_component/src/sec_comp_base.cpp | 2 +- .../sa/sa_main/sec_comp_service.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frameworks/security_component/src/sec_comp_base.cpp b/frameworks/security_component/src/sec_comp_base.cpp index 5a76982..66b9471 100644 --- a/frameworks/security_component/src/sec_comp_base.cpp +++ b/frameworks/security_component/src/sec_comp_base.cpp @@ -76,7 +76,7 @@ const std::string JsonTagConstants::JSON_NON_COMPATIBLE_CHANGE_TAG = "hasNonComp const std::string JsonTagConstants::JSON_LINEAR_GRADIENT_BLUR_RADIUS_TAG = "blurRadius"; const std::string JsonTagConstants::JSON_FOREGROUND_BLUR_RADIUS_TAG = "foregroundBlurRadius"; const std::string JsonTagConstants::JSON_IS_OVERLAY_TEXT_SET_TAG = "isOverlayTextSet"; -const std::string JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG = "isOVerlayNodeCovered"; +const std::string JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG = "isOverlayNodeCovered"; bool SecCompBase::ParseNonCompatibleChange(const nlohmann::json& json) { diff --git a/services/security_component_service/sa/sa_main/sec_comp_service.cpp b/services/security_component_service/sa/sa_main/sec_comp_service.cpp index 9793c58..23f0c63 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_service.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_service.cpp @@ -396,16 +396,16 @@ int32_t SecCompService::UnregisterReadFromRawdata(SecCompRawdata& rawData, int32 { MessageParcel deserializedData; if (!SecCompEnhanceAdapter::EnhanceSrvDeserialize(rawData, deserializedData)) { - SC_LOG_ERROR(LABEL, "Unreigster deserialize session info failed"); + SC_LOG_ERROR(LABEL, "Unregister deserialize session info failed"); return SC_SERVICE_ERROR_PARCEL_OPERATE_FAIL; } if (!deserializedData.ReadInt32(scId)) { - SC_LOG_ERROR(LABEL, "Unreigster read component id failed"); + SC_LOG_ERROR(LABEL, "Unregister read component id failed"); return SC_SERVICE_ERROR_PARCEL_OPERATE_FAIL; } if (scId < 0) { - SC_LOG_ERROR(LABEL, "Unreigster security component id invalid"); + SC_LOG_ERROR(LABEL, "Unregister security component id invalid"); return SC_SERVICE_ERROR_VALUE_INVALID; } return SC_OK; @@ -430,7 +430,7 @@ int32_t SecCompService::UnregisterWriteToRawdata(int32_t res, SecCompRawdata& ra } if (!SecCompEnhanceAdapter::EnhanceSrvSerialize(replyParcel, rawReply)) { - SC_LOG_ERROR(LABEL, "Unreigster serialize session info failed"); + SC_LOG_ERROR(LABEL, "Unregister serialize session info failed"); return SC_SERVICE_ERROR_PARCEL_OPERATE_FAIL; } return SC_OK; -- Gitee