diff --git a/frameworks/ets/ets/@ohos.notificationManager.ets b/frameworks/ets/ets/@ohos.notificationManager.ets index 3bd9e4e93d82719c713c7ce8b8434ef3bb2b0cce..a5ed7478dd573252d9223c98f9f2ec29322dec15 100644 --- a/frameworks/ets/ets/@ohos.notificationManager.ets +++ b/frameworks/ets/ets/@ohos.notificationManager.ets @@ -238,13 +238,13 @@ export default namespace notificationManager { if (slot == null) { return errorParamInvalid; } - if (slot.lockscreenVisibility !== undefined && typeof slot.lockscreenVisibility === 'number') { + if (slot.lockscreenVisibility !== undefined && typeof slot.lockscreenVisibility === 'int') { const num = slot.lockscreenVisibility ?? -1; if (num < 0) { return errorParamInvalid; } } - if (slot.lightColor !== undefined && typeof slot.lightColor === 'number') { + if (slot.lightColor !== undefined && typeof slot.lightColor === 'int') { const num = slot.lightColor ?? -1; if (num < 0) { return errorParamInvalid; @@ -625,13 +625,13 @@ export default namespace notificationManager { if (request?.appInstanceKey !== undefined && request?.appInstanceKey?.trim() === '') { return errorParamInvalid; } - if (request?.color !== undefined && typeof request.color === 'number') { + if (request?.color !== undefined && typeof request.color === 'long') { const num = request.color ?? -1; if (num < 0) { return errorParamInvalid; } } - if (request?.badgeNumber !== undefined && typeof request.badgeNumber === 'number') { + if (request?.badgeNumber !== undefined && typeof request.badgeNumber === 'long') { const num = request.badgeNumber ?? -1; if (num < 0) { return errorParamInvalid;