修改读取SceneInfo

Signed-off-by: xiahaiqin <xiahaiqin1@huawei.com>
Change-Id: Ife48c37e033c82267b129c4ef5c7dc3757647dc9
This commit is contained in:
xiahaiqin 2022-12-28 15:57:05 +08:00
parent 921ba8e757
commit 87e79b3797

View File

@ -41,7 +41,7 @@ bool GetAbilityInfoFromJs(NativeEngine& engine, NativeObject* jsObject,
}
if (jsAbilityName->TypeOf() != NATIVE_UNDEFINED) {
std::string abilityName;
if (!ConvertFromJsValue(engine, jsBundleName, abilityName)) {
if (!ConvertFromJsValue(engine, jsAbilityName, abilityName)) {
WLOGFE("[NAPI]Failed to convert parameter to bundleName");
return false;
}