From 4ad5a5bb76c7e5617862de3555f98898fb82c61d Mon Sep 17 00:00:00 2001 From: wangsen1994 Date: Thu, 5 Sep 2024 19:42:52 +0800 Subject: [PATCH] =?UTF-8?q?cherry=20pick=2020853a4=20from=20https://gitee.?= =?UTF-8?q?com/wangsen1994/notification=5Fdistributed=5Fnotification=5Fser?= =?UTF-8?q?vice/pulls/2145=20=E5=8F=96=E6=B6=88=E6=89=93=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangsen1994 --- services/ans/src/common/notification_analytics_util.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/ans/src/common/notification_analytics_util.cpp b/services/ans/src/common/notification_analytics_util.cpp index e327c4736..f95698ad3 100644 --- a/services/ans/src/common/notification_analytics_util.cpp +++ b/services/ans/src/common/notification_analytics_util.cpp @@ -122,7 +122,7 @@ std::string HaMetaMessage::Build() const void NotificationAnalyticsUtil::ReportPublishFailedEvent(const sptr& request, const HaMetaMessage& message) { - CommonNotificationEvent(request, PUBLISH_ERROR_EVENT_CODE, message); + return; } void NotificationAnalyticsUtil::ReportDeleteFailedEvent(const sptr& request, @@ -139,7 +139,6 @@ void NotificationAnalyticsUtil::ReportDeleteFailedEvent(const sptr& request, @@ -227,8 +226,6 @@ void NotificationAnalyticsUtil::ReportDeleteFailedEvent(const HaMetaMessage& mes want.SetParam("typeCode", message.typeCode_); want.SetParam("id", message.notificationId_); want.SetParam("extraInfo", extraContent); - IN_PROCESS_CALL_WITHOUT_RET(ReportNotificationEvent( - want, DELETE_ERROR_EVENT_CODE, message.Build())); } void NotificationAnalyticsUtil::ReportNotificationEvent(EventFwk::Want want, -- Gitee