From bdc9314a30c87728ef28dddc3f4d975a8a73adbe Mon Sep 17 00:00:00 2001 From: mashaohua7 Date: Tue, 4 Jun 2024 17:12:48 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mashaohua7 --- services/abilitymgr/src/ability_auto_startup_data_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/abilitymgr/src/ability_auto_startup_data_manager.cpp b/services/abilitymgr/src/ability_auto_startup_data_manager.cpp index ac73e712b8..aeb21b2091 100644 --- a/services/abilitymgr/src/ability_auto_startup_data_manager.cpp +++ b/services/abilitymgr/src/ability_auto_startup_data_manager.cpp @@ -409,7 +409,7 @@ AutoStartupInfo AbilityAutoStartupDataManager::ConvertAutoStartupInfoFromKeyAndV info.abilityName = jsonObject.at(JSON_KEY_ABILITY_NAME).get(); } - if (jsonObject.contains(JSON_KEY_APP_CLONE_INDEX) && jsonObject[JSON_KEY_APP_CLONE_INDEX].is_string()) { + if (jsonObject.contains(JSON_KEY_APP_CLONE_INDEX) && jsonObject[JSON_KEY_APP_CLONE_INDEX].is_number()) { info.appCloneIndex = jsonObject.at(JSON_KEY_APP_CLONE_INDEX).get(); } From 420e6d3f9b6a0d4f6de1497f513afb321fdcdd6a Mon Sep 17 00:00:00 2001 From: mashaohua7 Date: Tue, 4 Jun 2024 17:18:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mashaohua7 --- services/abilitymgr/src/ability_auto_startup_data_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/abilitymgr/src/ability_auto_startup_data_manager.cpp b/services/abilitymgr/src/ability_auto_startup_data_manager.cpp index aeb21b2091..dc9f23dee2 100644 --- a/services/abilitymgr/src/ability_auto_startup_data_manager.cpp +++ b/services/abilitymgr/src/ability_auto_startup_data_manager.cpp @@ -462,7 +462,7 @@ bool AbilityAutoStartupDataManager::IsEqual(const DistributedKv::Key &key, const } } - if (jsonObject.contains(JSON_KEY_APP_CLONE_INDEX) && jsonObject[JSON_KEY_APP_CLONE_INDEX].is_string()) { + if (jsonObject.contains(JSON_KEY_APP_CLONE_INDEX) && jsonObject[JSON_KEY_APP_CLONE_INDEX].is_number()) { if (info.appCloneIndex != jsonObject.at(JSON_KEY_APP_CLONE_INDEX).get()) { return false; } From 7fd88d4a34c64eccf58df7ac18856ffa68fd1967 Mon Sep 17 00:00:00 2001 From: mashaohua7 Date: Tue, 4 Jun 2024 17:32:10 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mashaohua7 --- services/abilitymgr/src/ability_auto_startup_data_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/abilitymgr/src/ability_auto_startup_data_manager.cpp b/services/abilitymgr/src/ability_auto_startup_data_manager.cpp index dc9f23dee2..c6b5931239 100644 --- a/services/abilitymgr/src/ability_auto_startup_data_manager.cpp +++ b/services/abilitymgr/src/ability_auto_startup_data_manager.cpp @@ -410,7 +410,7 @@ AutoStartupInfo AbilityAutoStartupDataManager::ConvertAutoStartupInfoFromKeyAndV } if (jsonObject.contains(JSON_KEY_APP_CLONE_INDEX) && jsonObject[JSON_KEY_APP_CLONE_INDEX].is_number()) { - info.appCloneIndex = jsonObject.at(JSON_KEY_APP_CLONE_INDEX).get(); + info.appCloneIndex = jsonObject.at(JSON_KEY_APP_CLONE_INDEX).get(); } if (jsonObject.contains(JSON_KEY_ACCESS_TOKENID) && jsonObject[JSON_KEY_ACCESS_TOKENID].is_string()) { @@ -463,7 +463,7 @@ bool AbilityAutoStartupDataManager::IsEqual(const DistributedKv::Key &key, const } if (jsonObject.contains(JSON_KEY_APP_CLONE_INDEX) && jsonObject[JSON_KEY_APP_CLONE_INDEX].is_number()) { - if (info.appCloneIndex != jsonObject.at(JSON_KEY_APP_CLONE_INDEX).get()) { + if (info.appCloneIndex != jsonObject.at(JSON_KEY_APP_CLONE_INDEX).get()) { return false; } }