diff --git a/interfaces/kits/ets/taihe/src/ohos.resourceschedule.backgroundTaskManager.impl.cpp b/interfaces/kits/ets/taihe/src/ohos.resourceschedule.backgroundTaskManager.impl.cpp index 089aee47807fa2789548e3f80fe266a22014d014..d20bce2df419376f2b57fa65bdfb3be4397c1454 100644 --- a/interfaces/kits/ets/taihe/src/ohos.resourceschedule.backgroundTaskManager.impl.cpp +++ b/interfaces/kits/ets/taihe/src/ohos.resourceschedule.backgroundTaskManager.impl.cpp @@ -357,7 +357,7 @@ static ani_enum_item GetSlotType(ani_env *env) return nullptr; } ani_enum enumType; - if (ANI_OK != env->FindEnum("L@ohos/notificationManager/notificationManager/SlotType;", &enumType)) { + if (ANI_OK != env->FindEnum("@ohos.notificationManager.notificationManager.SlotType", &enumType)) { BGTASK_LOGE("get slotType failed"); return nullptr; } @@ -377,7 +377,7 @@ static ani_enum_item GetContentType(ani_env *env) return nullptr; } ani_enum enumType; - if (ANI_OK != env->FindEnum("L@ohos/notificationManager/notificationManager/ContentType;", &enumType)) { + if (ANI_OK != env->FindEnum("@ohos.notificationManager.notificationManager.ContentType", &enumType)) { BGTASK_LOGE("get contentType failed"); return nullptr; }