From c5961efb59c21c71f0520f4f0840d7dd9925f9cf Mon Sep 17 00:00:00 2001 From: z00454238 Date: Tue, 10 Jun 2025 11:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E4=BF=A1=E6=81=AF=20Signed-off-by:=20z00454238=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/ans/src/enable_manager/enable_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/ans/src/enable_manager/enable_manager.cpp b/services/ans/src/enable_manager/enable_manager.cpp index cd2a5158e..6023b6938 100644 --- a/services/ans/src/enable_manager/enable_manager.cpp +++ b/services/ans/src/enable_manager/enable_manager.cpp @@ -138,12 +138,13 @@ ErrCode AdvancedNotificationService::CommonRequestEnableNotification(const std:: return ERROR_INTERNAL_ERROR; } if (hasPopped) { + ANS_LOGE("Has popped is true."); #ifdef ENABLE_ANS_PRIVILEGED_MESSAGE_EXT_WRAPPER int32_t userId = -1; OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleOption->GetUid(), userId); if (!EXTENTION_WRAPPER->GetPrivilegeDialogPopped(bundleOption, userId)) { #endif - ANS_LOGE("Has popped is true."); + ANS_LOGE("GetPrivilegeDialogPopped false."); message.ErrorCode(ERR_ANS_NOT_ALLOWED).Append(" Has popped"); NotificationAnalyticsUtil::ReportModifyEvent(message); return ERR_ANS_NOT_ALLOWED; @@ -340,12 +341,13 @@ ErrCode AdvancedNotificationService::CanPopEnableNotificationDialog( return ERROR_INTERNAL_ERROR; } if (hasPopped) { + ANS_LOGE("Has popped is true."); #ifdef ENABLE_ANS_PRIVILEGED_MESSAGE_EXT_WRAPPER int32_t userId = -1; OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleOption->GetUid(), userId); if (!EXTENTION_WRAPPER->GetPrivilegeDialogPopped(bundleOption, userId)) { #endif - ANS_LOGE("Has popped is true."); + ANS_LOGE("GetPrivilegeDialogPopped false."); message.ErrorCode(ERR_ANS_NOT_ALLOWED).Append(" Haspopped true"); NotificationAnalyticsUtil::ReportModifyEvent(message); return ERR_ANS_NOT_ALLOWED; -- Gitee