From 0a0a2a301efa7b69f1d14aac73d893483cde870e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=8F=B2=E5=A2=A8?= Date: Tue, 22 Jul 2025 15:55:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 朱菲墨 --- frameworks/native/runtime/js_runtime.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frameworks/native/runtime/js_runtime.cpp b/frameworks/native/runtime/js_runtime.cpp index ecf9fa50d6d..5084526ede9 100644 --- a/frameworks/native/runtime/js_runtime.cpp +++ b/frameworks/native/runtime/js_runtime.cpp @@ -1710,14 +1710,12 @@ std::vector JsRuntime::GetSystemKitsMap(uint32_t version) continue; } uint32_t sinceVersion = jsonObject.at(SINCE_VERSION).get(); - if (version >= sinceVersion) { - panda::HmsMap hmsMap = { - .originalPath = jsonObject.at(NAMESPACE).get(), - .targetPath = jsonObject.at(TARGET_OHM).get(), - .sinceVersion = sinceVersion - }; - systemKitsMap.emplace_back(hmsMap); - } + panda::HmsMap hmsMap = { + .originalPath = jsonObject.at(NAMESPACE).get(), + .targetPath = jsonObject.at(TARGET_OHM).get(), + .sinceVersion = sinceVersion + }; + systemKitsMap.emplace_back(hmsMap); } TAG_LOGD(AAFwkTag::JSRUNTIME, "The size of the map is %{public}zu", systemKitsMap.size()); return systemKitsMap; -- Gitee