From 83a8e95b8e9b945944e485af2db2441a2c38550c Mon Sep 17 00:00:00 2001 From: BrainL Date: Tue, 8 Oct 2024 12:23:14 +0000 Subject: [PATCH] update interfaces/kits/picker/src/picker_n_exporter.cpp. Signed-off-by: BrainL --- interfaces/kits/picker/src/picker_n_exporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/picker/src/picker_n_exporter.cpp b/interfaces/kits/picker/src/picker_n_exporter.cpp index de0db377..fdeea7d8 100644 --- a/interfaces/kits/picker/src/picker_n_exporter.cpp +++ b/interfaces/kits/picker/src/picker_n_exporter.cpp @@ -105,7 +105,7 @@ static void MakeResultWithBool(napi_env env, std::string key, napi_value &result { napi_status status = napi_generic_failure; if (pickerCallBack->want.GetParams().HasParam(key.c_str())) { - const bool boolVal = pickerCallBack->want.GetIntParam(key.c_str(), false); + const bool boolVal = pickerCallBack->want.GetBoolParam(key.c_str(), false); HILOG_INFO("[picker]: %{public}s is %{public}d ", key.c_str(), boolVal); napi_value nBoolVal = nullptr; napi_get_boolean(env, boolVal, &nBoolVal);