diff --git a/frameworks/ets/ets/@ohos.notificationManager.ets b/frameworks/ets/ets/@ohos.notificationManager.ets index bc9a8dfa381ee5c461fe498acae8afd03385989a..e33a749ad5d415b681bd860063efaec0309213b4 100644 --- a/frameworks/ets/ets/@ohos.notificationManager.ets +++ b/frameworks/ets/ets/@ohos.notificationManager.ets @@ -256,13 +256,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; @@ -676,13 +676,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;