From: luozheng <1732036298@qq.com> Date: Fri, 28 Feb 2025 07:48:08 +0000 (+0800) Subject: AI大模型标题DEEPSEEK修改为deepSeek X-Git-Tag: v1.3.113-repair_tp~3^2~6 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f396c1070baa5e5cc4bf48264ddf6e1c06bcf5c4;p=mirrors%2FFD230.git AI大模型标题DEEPSEEK修改为deepSeek --- 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 6f857067a..ebd1cd90e 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-11-19 22:07:15 + * @LastEditTime: 2025-02-28 15:44:14 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/AiVoice/src/AiVoiceView.cpp */ #include "aivoice/include/AiVoicePresenter.h" @@ -158,7 +158,11 @@ namespace OHOS label->SetPosition(labelconfig.left, labelconfig.top, labelconfig.width, labelconfig.height); label->SetStyle(STYLE_TEXT_FONT, labelconfig.fontSize); label->SetStyle(STYLE_LINE_HEIGHT, labelconfig.lineHeigh); - label->SetTextId(labelconfig.textId); + //TOOD: 待优化 + if(labelconfig.textId == STR_DEEPSEEK) { + label->SetText("DeepSeek"); + } else + label->SetTextId(labelconfig.textId); label->SetLineBreakMode(labelconfig.lineBreakMode); label->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); label->SetRollSpeed(23); @@ -934,8 +938,15 @@ namespace OHOS int textId = AiVoiceModel::GetInstance().GetAiModelTextId(); if (title) { + if(textId == STR_DEEPSEEK) + { + title->SetText("DeepSeek"); + } + else + { title->SetTextId(textId); title->ForceResetText(); + } } if (aiModelImage) {