update frameworks/native/runtime/js_runtime_lite.cpp.

Signed-off-by: 查维 <zhawei12@huawei-partners.com>
This commit is contained in:
查维
2025-07-25 07:48:33 +00:00
parent 1a0d140f8a
commit 87b2ff6752
2 changed files with 2 additions and 2 deletions
@@ -479,7 +479,7 @@ void JsRuntimeLite::GetPkgContextInfoListMap(const std::map<std::string, std::st
continue;
}
ParsePkgContextInfoJson(jsonObject, pkgContextInfoList, pkgAliasMap);
TAG_LOGI(AAFwkTag::JSRUNTIME, "moduleName: %{public}s parse ok", it->first.c_str());
TAG_LOGD(AAFwkTag::JSRUNTIME, "moduleName: %{public}s parse json success", it->first.c_str());
pkgContextInfoMap[it->first] = pkgContextInfoList;
}
}
@@ -8195,7 +8195,7 @@ void AbilityManagerService::RemoveUnauthorizedLaunchReasonMessage(const Want &wa
std::string value = want.GetStringParam(Want::PARM_LAUNCH_REASON_MESSAGE);
TAG_LOGD(AAFwkTag::ABILITYMGR, "launchReasonMessage:%{public}s", value.c_str());
if (!AppUtils::GetInstance().IsSystemReasonMessage(value)) {
TAG_LOGW(AAFwkTag::ABILITYMGR, "not in allowlist, remove");
TAG_LOGW(AAFwkTag::ABILITYMGR, "not allow, remove");
(const_cast<Want &>(want)).RemoveParam(Want::PARM_LAUNCH_REASON_MESSAGE);
abilityRequest.want.RemoveParam(Want::PARM_LAUNCH_REASON_MESSAGE);
return;