From bed0250a58a09b039d90740d90220fc95d096980 Mon Sep 17 00:00:00 2001 From: zouheng <18179045811@163.com> Date: Fri, 29 Aug 2025 10:36:39 +0800 Subject: [PATCH] =?UTF-8?q?ani=5Fnotification=5Fenable=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouheng <18179045811@163.com> --- .../ets/ani/src/manager/ani_notification_enable.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/ets/ani/src/manager/ani_notification_enable.cpp b/frameworks/ets/ani/src/manager/ani_notification_enable.cpp index 555757da0..ba9317671 100644 --- a/frameworks/ets/ani/src/manager/ani_notification_enable.cpp +++ b/frameworks/ets/ani/src/manager/ani_notification_enable.cpp @@ -65,7 +65,7 @@ ani_boolean AniIsNotificationEnabledWithBundleOption(ani_env *env, ani_object bu if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniIsNotificationEnabledWithBundleOption -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AniIsNotificationEnabledWithBundleOption error, errorCode: %{public}d", externalCode); OHOS::NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); return ANI_FALSE; } @@ -86,7 +86,7 @@ void AniSetNotificationEnable(ani_env *env, ani_object bundleOption, ani_boolean NotificationSts::AniBooleanToBool(enable)); if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniSetNotificationEnable -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AniSetNotificationEnable error, errorCode: %{public}d", externalCode); OHOS::NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); } ANS_LOGD("AniSetNotificationEnable end"); @@ -99,7 +99,7 @@ ani_object AniGetAllNotificationEnabledBundles(ani_env *env) int returncode = Notification::NotificationHelper::GetAllNotificationEnabledBundles(bundleOptions); if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniGetAllNotificationEnabledBundles -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AniGetAllNotificationEnabledBundles error, errorCode: %{public}d", externalCode); OHOS::NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); return nullptr; } @@ -119,7 +119,7 @@ ani_boolean AniIsNotificationEnabledSync(ani_env *env) int returncode = Notification::NotificationHelper::IsAllowedNotifySelf(allowed); if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniIsNotificationEnabledSync -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AniIsNotificationEnabledSync error, errorCode: %{public}d", externalCode); OHOS::NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); return NotificationSts::BoolToAniBoolean(false); } @@ -134,7 +134,7 @@ ani_boolean AniGetSyncNotificationEnabledWithoutApp(ani_env* env, ani_int userId static_cast(userId), enabled); if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniGetSyncNotificationEnabledWithoutApp -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AniGetSyncNotificationEnabledWithoutApp error, errorCode: %{public}d", externalCode); OHOS::NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); return NotificationSts::BoolToAniBoolean(false); } @@ -149,7 +149,7 @@ void AniSetSyncNotificationEnabledWithoutApp(ani_env* env, ani_int userId, ani_b userId, NotificationSts::AniBooleanToBool(enabled)); if (returncode != ERR_OK) { int externalCode = NotificationSts::GetExternalCode(returncode); - ANS_LOGE("AniSetSyncNotificationEnabledWithoutApp -> error, errorCode: %{public}d", externalCode); + ANS_LOGE("AniSetSyncNotificationEnabledWithoutApp error, errorCode: %{public}d", externalCode); OHOS::NotificationSts::ThrowError(env, externalCode, NotificationSts::FindAnsErrMsg(externalCode)); return; } -- Gitee