From 33dfeadf05b3ef6b207287088742d99b47cd88b5 Mon Sep 17 00:00:00 2001 From: caochao <2930650069@qq.com> Date: Wed, 19 Jan 2022 14:07:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbool=E8=BD=AC=E5=8C=96?= =?UTF-8?q?=E4=B8=BAin32=5Ft=E5=B8=A6=E6=9D=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cao_liu_chao --- .../src/authentication/dm_auth_manager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp b/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp index dbf9ae8ea..0f11031b5 100644 --- a/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp +++ b/services/devicemanagerservice/src/authentication/dm_auth_manager.cpp @@ -726,13 +726,12 @@ void DmAuthManager::UserSwitchEventCallback (void) jsonObj[FIELD_GROUP_TYPE] = GROUP_TYPE_PEER_TO_PEER_GROUP; std::string queryParams = jsonObj.dump(); std::vector groupList; - int32_t ret = hiChainConnector_->GetGroupInfo(queryParams, groupList); - if (ret != DM_OK) { + if (!hiChainConnector_->GetGroupInfo(queryParams, groupList)) { LOGE("failed to get device join groups"); return; } for (auto iter = groupList.begin(); iter != groupList.end(); iter++) { - ret = hiChainConnector_->DeleteGroup(iter->groupId); + int32_t ret = hiChainConnector_->DeleteGroup(iter->groupId); if (ret != DM_OK) { LOGE("fail to delete group"); } -- Gitee