From 383d7c57366c02cf1105882e24579a62c4cccd72 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 31 Jul 2024 18:49:55 +0800 Subject: [PATCH] =?utf8?q?AI=E8=AF=AD=E9=9F=B3=E4=BC=98=E5=8C=96=E4=BF=AE?= =?utf8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/aivoice/src/AiVoiceModel.cpp | 4 ++-- .../wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp | 7 ++----- .../fs/user/res/AIVoice/aimodels/aimodels_wenxinyiyan.bin | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp index 61437d761..a5b18d200 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-20 15:14:50 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-07-31 16:57:44 + * @LastEditTime: 2024-07-31 18:07:20 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp */ #include "aivoice/include/AiVoiceModel.h" @@ -481,7 +481,7 @@ namespace OHOS } WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "filesize = %ld,SelectAiModel = %d", size, it->second.second); - send_AI_is_ready(0); + send_AI_is_ready(it->second.second); ClearQuestionAndAiAnswerStr(); // 清空上次用户问题和Ai回答字符串 } fclose(file); diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp index 118bd425a..24c4a4607 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceView.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-05-07 11:25:58 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-07-31 14:42:25 + * @LastEditTime: 2024-07-31 18:33:11 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AiVoiceView.cpp */ #include "aivoice/include/AiVoicePresenter.h" @@ -286,9 +286,6 @@ namespace OHOS } aiModelImage->SetTouchable(true); aiModelImage->SetViewId(AIVOICE_IMGAE_VIEW_ID); - aiModelImage->SetStyle(STYLE_BACKGROUND_COLOR, 0xffffffff); - aiModelImage->SetStyle(STYLE_BACKGROUND_OPA, 0xff); - aiModelImage->SetStyle(STYLE_BORDER_RADIUS, 100); aiModelImage->SetOnClickListener(presenter_); return true; @@ -361,7 +358,7 @@ namespace OHOS aiModelPicker->SetPosition(203, 203, 60, 60); aiModelPicker->SetViewId(AIVOICE_PICKER_VIEW_ID); aiModelPicker->SetStyle(STYLE_BACKGROUND_COLOR, 0xffffffff); - aiModelPicker->SetStyle(STYLE_BACKGROUND_OPA, 0xff); + aiModelPicker->SetStyle(STYLE_BACKGROUND_OPA, 0x00); aiModelPicker->SetStyle(STYLE_BORDER_RADIUS, 150); aiModelPicker->SetItemHeight(40); aiModelPicker->SetLoopState(true); diff --git a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/AIVoice/aimodels/aimodels_wenxinyiyan.bin b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/AIVoice/aimodels/aimodels_wenxinyiyan.bin index dc5b77eca..f302b4a37 100644 --- a/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/AIVoice/aimodels/aimodels_wenxinyiyan.bin +++ b/code/sdk/build/config/target_config/brandy/mk_fs_image/fd230/fs/user/res/AIVoice/aimodels/aimodels_wenxinyiyan.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2d3243a22c2a00ee51eecd8e04e2549a0b16d933026dd6fe1fa119d29fa03f4b +oid sha256:e6c4462c622e0cb6f381bbe23b81a2ffc35b6c9c12e7f1d36d6f46f2c7c3ac39 size 9624 -- 2.17.1