From 06002f726135ead8f2bb87e574aa601e486534aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E5=BF=97=E9=9B=84?= Date: Fri, 13 Sep 2024 15:39:20 +0800 Subject: [PATCH] =?UTF-8?q?settings=E7=8B=AC=E7=AB=8B=E6=96=B0=E5=A2=9Ec++?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BA=8E=E6=B3=A8=E5=86=8C=E5=92=8C?= =?UTF-8?q?=E8=AF=BB=E5=86=99=E6=93=8D=E4=BD=9C=20Signed-off-by:=20?= =?UTF-8?q?=E6=9D=A8=E4=BA=91=E9=B9=8F=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- napi/settings/normal/settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napi/settings/normal/settings.cpp b/napi/settings/normal/settings.cpp index 63888aff..e200f714 100644 --- a/napi/settings/normal/settings.cpp +++ b/napi/settings/normal/settings.cpp @@ -85,7 +85,7 @@ sptr GetSettingObserver(const std::string &key, const std tmpMap = &settingUserSecureObserverMap_; } else { SETTING_LOG_ERROR("GetSettingObserver table is error, key %{public}s, table %{public}s", - key.c_str(), tableName.c_str()); + key.c_str(), tableName.c_str()); return nullptr; } std::lock_guard lockGuard(observerMapMutex_); @@ -159,7 +159,7 @@ std::string GetSettingUri(const std::string &key, const std::string &tableName) if (tableName == USER_SECURITY_TABLE) { curUri = "datashare:///com.ohos.settingsdata/entry/settingsdata/USER_SETTINGSDATA_SECURE_" + curUserId + "?Proxy=true&key=" + key; - } else if (tableName == DEVICE_SHARE_TABLE) { + } else if (tableName == DEVICE_SHARED_TABLE) { curUri = "datashare:///com.ohos.settingsdata/entry/settingsdata/SETTINGSDATA?Proxy=true&key=" + key; } else if (tableName == USER_PROPERTY_TABLE) { curUri = "datashare:///com.ohos.settingsdata/entry/settingsdata/USER_SETTINGSDATA_" +