From e45e973748bc9725d7b1139f2e34a6e817aa0b9d Mon Sep 17 00:00:00 2001 From: chennian Date: Sun, 24 Aug 2025 01:46:59 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9user=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chennian --- tools/accesstoken/src/atm_command.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/accesstoken/src/atm_command.cpp b/tools/accesstoken/src/atm_command.cpp index 1212d7c79..3096eabc8 100644 --- a/tools/accesstoken/src/atm_command.cpp +++ b/tools/accesstoken/src/atm_command.cpp @@ -55,6 +55,8 @@ static const std::string HELP_MSG_DUMP = #ifndef ATM_BUILD_VARIANT_USER_ENABLE " -r, --record-info [-i ] [-p ] list used records in system\n" " -v, --visit-type [-i ] [-p ] list all token used type in system\n"; +#else + ""; #endif static const std::string HELP_MSG_PERM = -- Gitee From 695c5b37101b9a7b8db8cc4067743f30988adbe0 Mon Sep 17 00:00:00 2001 From: chennian Date: Sun, 24 Aug 2025 03:51:45 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=AA=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chennian --- frameworks/js/napi/accesstoken/src/napi_request_permission.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/js/napi/accesstoken/src/napi_request_permission.cpp b/frameworks/js/napi/accesstoken/src/napi_request_permission.cpp index 2760db89c..81f65d718 100644 --- a/frameworks/js/napi/accesstoken/src/napi_request_permission.cpp +++ b/frameworks/js/napi/accesstoken/src/napi_request_permission.cpp @@ -811,7 +811,7 @@ bool NapiRequestPermission::ParseInputToGetQueryResult(const napi_env& env, cons void* data = nullptr; NAPI_CALL_BASE(env, napi_get_cb_info(env, info, &argc, argv, &thatVar, &data), false); // 1: can request permissions minnum argc - if (argc < MAX_PARAMS_TWO - 1) { + if (argc < MAX_PARAMS_TWO) { NAPI_CALL_BASE(env, napi_throw(env, GenerateBusinessError(env, JsErrorCode::JS_ERROR_PARAM_ILLEGAL, "Parameter is missing.")), false); return false; -- Gitee