From 2facb8341c3688eaaef88da38a422659fe36129a Mon Sep 17 00:00:00 2001 From: "baozeyu1@huawei.com" Date: Wed, 25 Jun 2025 11:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=8F=E5=90=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4AI=E6=A3=80=E8=A7=86=E6=84=8F=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: baozeyu1@huawei.com --- .../include/soft_bus/distributed_publish_service.h | 2 +- .../src/soft_bus/distributed_publish_service_v2.cpp | 4 ++-- services/distributed/src/soft_bus/distributed_service.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/distributed/include/soft_bus/distributed_publish_service.h b/services/distributed/include/soft_bus/distributed_publish_service.h index d05d93cd9..ff779ab5e 100644 --- a/services/distributed/include/soft_bus/distributed_publish_service.h +++ b/services/distributed/include/soft_bus/distributed_publish_service.h @@ -43,7 +43,7 @@ public: std::string hashCodes, std::string slotTypes); #ifdef DISTRIBUTED_FEATURE_MASTER - void RemoveAllDistributedNotificaions(DistributedDeviceInfo& deviceInfo); + void RemoveAllDistributedNotifications(DistributedDeviceInfo& deviceInfo); void SyncLiveViewNotification(const DistributedDeviceInfo peerDevice, bool isForce); void SendNotifictionRequest(const std::shared_ptr request, const DistributedDeviceInfo& peerDevice, bool isSyncNotification = false); diff --git a/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp b/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp index 9d2660202..eca4c9da5 100644 --- a/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp +++ b/services/distributed/src/soft_bus/distributed_publish_service_v2.cpp @@ -212,7 +212,7 @@ void DistributedPublishService::OnRemoveNotifications(const DistributedDeviceInf } #ifdef DISTRIBUTED_FEATURE_MASTER -void DistributedPublishService::RemoveAllDistributedNotificaions(DistributedDeviceInfo& deviceInfo) +void DistributedPublishService::RemoveAllDistributedNotifications(DistributedDeviceInfo& deviceInfo) { std::shared_ptr removeBox = std::make_shared(); @@ -225,7 +225,7 @@ void DistributedPublishService::RemoveAllDistributedNotificaions(DistributedDevi ANS_LOGW("dans OnCanceled serialize failed"); return; } - ANS_LOGI("RemoveAllDistributedNotificaions ID:%{public}s", + ANS_LOGI("RemoveAllDistributedNotifications ID:%{public}s", StringAnonymous(deviceInfo.deviceId_).c_str()); DistributedClient::GetInstance().SendMessage(removeBox, TransDataType::DATA_TYPE_MESSAGE, deviceInfo.deviceId_, DELETE_ERROR_EVENT_CODE); diff --git a/services/distributed/src/soft_bus/distributed_service.cpp b/services/distributed/src/soft_bus/distributed_service.cpp index 1a7fb7e1b..2d5e02efd 100644 --- a/services/distributed/src/soft_bus/distributed_service.cpp +++ b/services/distributed/src/soft_bus/distributed_service.cpp @@ -195,7 +195,7 @@ void DistributedService::DeviceStatusChange(const DeviceStatueChangeInfo& change ANS_LOGW("get deviceId err"); return; } - DistributedPublishService::GetInstance().RemoveAllDistributedNotificaions(device); + DistributedPublishService::GetInstance().RemoveAllDistributedNotifications(device); } #else if (changeInfo.changeType == DeviceStatueChangeType::NOTIFICATION_ENABLE_CHANGE) { -- Gitee