From 90330acd0c700aab86a55cb5f97995a3afdaf2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=B2=E8=BE=89?= Date: Sat, 22 Jan 2022 10:12:51 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!105=20:?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8Dbool=E8=BD=AC=E5=8C=96=E4=B8=BAin32=5Ft?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/authentication/dm_auth_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp b/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp index 0f11031b5..dbf9ae8ea 100644 --- a/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp +++ b/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp @@ -726,12 +726,13 @@ void DmAuthManager::UserSwitchEventCallback (void) jsonObj[FIELD_GROUP_TYPE] = GROUP_TYPE_PEER_TO_PEER_GROUP; std::string queryParams = jsonObj.dump(); std::vector groupList; - if (!hiChainConnector_->GetGroupInfo(queryParams, groupList)) { + int32_t ret = hiChainConnector_->GetGroupInfo(queryParams, groupList); + if (ret != DM_OK) { LOGE("failed to get device join groups"); return; } for (auto iter = groupList.begin(); iter != groupList.end(); iter++) { - int32_t ret = hiChainConnector_->DeleteGroup(iter->groupId); + ret = hiChainConnector_->DeleteGroup(iter->groupId); if (ret != DM_OK) { LOGE("fail to delete group"); } -- Gitee