From 1a6a6c28085a8a4dbfd00ddb59689d8813681c6c Mon Sep 17 00:00:00 2001 From: liwang <965027894@qq.com> Date: Sat, 30 Aug 2025 15:55:47 +0800 Subject: [PATCH] =?UTF-8?q?sts=5Fconvert=5Fother.cpp=E6=96=87=E4=BB=B6GetK?= =?UTF-8?q?eyString=E6=97=A5=E5=BF=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liwang <965027894@qq.com> --- frameworks/ets/ani/src/sts_convert_other.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frameworks/ets/ani/src/sts_convert_other.cpp b/frameworks/ets/ani/src/sts_convert_other.cpp index 7631b34bd..e6a4fb2f0 100644 --- a/frameworks/ets/ani/src/sts_convert_other.cpp +++ b/frameworks/ets/ani/src/sts_convert_other.cpp @@ -202,10 +202,9 @@ ani_status GetKeyString(ani_env *env, ani_object obj, int32_t index, ani_string } ani_status status = ANI_ERROR; ani_ref stringEntryRef; - status = env->Object_CallMethodByName_Ref(obj, - "$_get", "i:C{std.core.Object}", &stringEntryRef, index); + status = env->Object_CallMethodByName_Ref(obj, "$_get", "i:C{std.core.Object}", &stringEntryRef, index); if (status != ANI_OK) { - ANS_LOGE("status : %{public}d, index: %{public}d", status, index); + ANS_LOGE("Object_CallMethodByName_Ref fail. status : %{public}d, index: %{public}d", status, index); return status; } str = static_cast(stringEntryRef); -- Gitee