From 883c5fb769f9037372c33568336032ded543202e Mon Sep 17 00:00:00 2001 From: cx983299475 Date: Wed, 12 Mar 2025 16:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=8F=8A=E7=8A=B6=E6=80=81=E6=9C=BA?= =?UTF-8?q?=E7=9A=84IPC=E6=B6=88=E6=81=AF=E5=BC=82=E6=AD=A5=E8=BD=AC?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cx983299475 --- interfaces/inner_api/src/form_render_proxy.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/interfaces/inner_api/src/form_render_proxy.cpp b/interfaces/inner_api/src/form_render_proxy.cpp index 62fa2c9073..273ef11063 100644 --- a/interfaces/inner_api/src/form_render_proxy.cpp +++ b/interfaces/inner_api/src/form_render_proxy.cpp @@ -27,7 +27,7 @@ int32_t FormRenderProxy::RenderForm(const FormJsInfo &formJsInfo, const Want &wa { MessageParcel data; MessageParcel reply; - MessageOption option(MessageOption::TF_ASYNC); + MessageOption option(MessageOption::TF_SYNC); if (!WriteInterfaceToken(data)) { HILOG_ERROR("write interface token failed"); @@ -56,7 +56,7 @@ int32_t FormRenderProxy::RenderForm(const FormJsInfo &formJsInfo, const Want &wa HILOG_ERROR("error to SendRequest:%{public}d", error); return error; } - return ERR_OK; + return reply.ReadInt32(); } int32_t FormRenderProxy::StopRenderingForm(const FormJsInfo &formJsInfo, const Want &want, @@ -297,7 +297,7 @@ int32_t FormRenderProxy::WriteParcelableVector(const std::vector &parcelableV int32_t FormRenderProxy::RecycleForm(const int64_t &formId, const Want &want) { MessageParcel data; - MessageOption option(MessageOption::TF_ASYNC); + MessageOption option(MessageOption::TF_SYNC); if (!WriteInterfaceToken(data)) { HILOG_ERROR("write interface token failed"); return ERR_APPEXECFWK_PARCEL_ERROR; @@ -322,13 +322,13 @@ int32_t FormRenderProxy::RecycleForm(const int64_t &formId, const Want &want) return error; } - return ERR_OK; + return reply.ReadInt32(); } int32_t FormRenderProxy::RecoverForm(const FormJsInfo &formJsInfo, const Want &want) { MessageParcel data; - MessageOption option(MessageOption::TF_ASYNC); + MessageOption option(MessageOption::TF_SYNC); HILOG_INFO("begin"); if (!WriteInterfaceToken(data)) { HILOG_ERROR("write interface token failed"); @@ -354,7 +354,7 @@ int32_t FormRenderProxy::RecoverForm(const FormJsInfo &formJsInfo, const Want &w return error; } HILOG_INFO("end"); - return ERR_OK; + return reply.ReadInt32(); } void FormRenderProxy::RunCachedConfigurationUpdated() -- Gitee