From 1a687576bc9c683c888b88ff98e13bf07700707c Mon Sep 17 00:00:00 2001 From: yangjun Date: Tue, 3 Sep 2024 11:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=89=E6=96=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=AD=E8=BF=94=E5=9B=9E=E7=9A=84=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangjun Change-Id: I43bd7d93b828cfffb6830b45b58ddacf52e7ddc8 --- frameworks/js/napi/src/common.cpp | 8 -------- frameworks/js/napi/src/common_convert_request.cpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/frameworks/js/napi/src/common.cpp b/frameworks/js/napi/src/common.cpp index 5d7fbde1e..c9642da69 100644 --- a/frameworks/js/napi/src/common.cpp +++ b/frameworks/js/napi/src/common.cpp @@ -200,14 +200,6 @@ napi_value Common::SetNotificationSlot(const napi_env &env, const NotificationSl napi_get_boolean(env, slot.GetEnable(), &value); napi_set_named_property(env, result, "enabled", value); - // authorizedStatus?: number - napi_create_int32(env, slot.GetAuthorizedStatus(), &value); - napi_set_named_property(env, result, "authorizedStatus", value); - - // reminderMode?: number - napi_create_int32(env, slot.GetReminderMode(), &value); - napi_set_named_property(env, result, "reminderMode", value); - return NapiGetBoolean(env, true); } diff --git a/frameworks/js/napi/src/common_convert_request.cpp b/frameworks/js/napi/src/common_convert_request.cpp index 6978daae4..be3c6899c 100644 --- a/frameworks/js/napi/src/common_convert_request.cpp +++ b/frameworks/js/napi/src/common_convert_request.cpp @@ -42,10 +42,6 @@ napi_value Common::SetNotificationRequestByString( return NapiGetBoolean(env, false); } - // classification?: string - napi_create_string_utf8(env, request->GetClassification().c_str(), NAPI_AUTO_LENGTH, &value); - napi_set_named_property(env, result, "classification", value); - // statusBarText?: string napi_create_string_utf8(env, request->GetStatusBarText().c_str(), NAPI_AUTO_LENGTH, &value); napi_set_named_property(env, result, "statusBarText", value); @@ -123,10 +119,6 @@ napi_value Common::SetNotificationRequestByNumber( napi_create_uint32(env, request->GetBadgeNumber(), &value); napi_set_named_property(env, result, "badgeNumber", value); - // readonly creatorInstanceKey?: number - napi_create_int32(env, request->GetCreatorInstanceKey(), &value); - napi_set_named_property(env, result, "creatorInstanceKey", value); - return NapiGetBoolean(env, true); } -- Gitee