From 55390e23fa1556692c86f488584776a6f8e3b317 Mon Sep 17 00:00:00 2001 From: zheng_zhi_hao Date: Tue, 19 Nov 2024 23:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E6=AD=A3=E5=8F=82=E6=95=B0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zheng_zhi_hao --- interfaces/kits/napi/print_napi/src/napi_inner_print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/napi/print_napi/src/napi_inner_print.cpp b/interfaces/kits/napi/print_napi/src/napi_inner_print.cpp index 86de47a..eea8403 100644 --- a/interfaces/kits/napi/print_napi/src/napi_inner_print.cpp +++ b/interfaces/kits/napi/print_napi/src/napi_inner_print.cpp @@ -761,8 +761,8 @@ napi_value NapiInnerPrint::NotifyPrintServiceEvent(napi_env env, napi_callback_i napi_valuetype valuetype; PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_arg); PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ONE], &valuetype), napi_invalid_arg); - std::string jobId = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_ZERO]); - uint32_t event = NapiPrintUtils::GetUint32FromValue(env, argv[NapiPrintUtils::INDEX_ONE]); + uint32_t event = NapiPrintUtils::GetUint32FromValue(env, argv[NapiPrintUtils::INDEX_ZERO]); + std::string jobId = NapiPrintUtils::GetStringFromValueUtf8(env, argv[NapiPrintUtils::INDEX_ONE]); PRINT_HILOGI("jobId: %{public}s, event : %{public}d", jobId.c_str(), event); if (!IsValidApplicationEvent(event)) { PRINT_HILOGE("invalid event");