From 4125e50b76b5a1ca7ed47fdceb83f046d1dd556e Mon Sep 17 00:00:00 2001 From: chenshuo Date: Mon, 27 May 2024 21:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=98=E6=8C=89=E9=9C=80=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenshuo --- services/core/src/utils/profile_control_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core/src/utils/profile_control_utils.cpp b/services/core/src/utils/profile_control_utils.cpp index 0f8a08e2..21292045 100644 --- a/services/core/src/utils/profile_control_utils.cpp +++ b/services/core/src/utils/profile_control_utils.cpp @@ -257,7 +257,7 @@ int32_t ProfileControlUtils::GetDeviceProfile(std::shared_ptr kvStor } std::string dbKeyPrefix = ProfileUtils::GenerateDeviceProfileKey(deviceId); std::map values; - if (kvStore->GetByPrefix(dbKeyPrefix, values) != DP_SUCCESS) { + if (kvStore->GetByPrefix(deviceId, dbKeyPrefix, values) != DP_SUCCESS) { HILOGE("Get data fail!"); return DP_GET_KV_DB_FAIL; } @@ -290,7 +290,7 @@ int32_t ProfileControlUtils::GetServiceProfile(std::shared_ptr kvSto } std::string dbKeyPrefix = ProfileUtils::GenerateServiceProfileKey(deviceId, serviceName); std::map values; - if (kvStore->GetByPrefix(dbKeyPrefix, values) != DP_SUCCESS) { + if (kvStore->GetByPrefix(deviceId, dbKeyPrefix, values) != DP_SUCCESS) { HILOGE("Get data fail!"); return DP_GET_KV_DB_FAIL; } @@ -325,7 +325,7 @@ int32_t ProfileControlUtils::GetCharacteristicProfile(std::shared_ptr values; - if (kvStore->GetByPrefix(profileKeyPrefix, values) != DP_SUCCESS) { + if (kvStore->GetByPrefix(deviceId, profileKeyPrefix, values) != DP_SUCCESS) { HILOGE("Get data fail!"); return DP_GET_KV_DB_FAIL; } -- Gitee