* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-20 15:14:50
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-17 15:19:15
+ * @LastEditTime: 2024-10-19 18:26:01
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp
*/
#include "aivoice/include/AiVoiceModel.h"
/*取消当前AI对话*/
void AiVoiceModel::CancelCurAIChat(void)
{
- cancel_AI_cur_chat();
+ // cancel_AI_cur_chat(); //线程发送取消当前对话
+ cancel_AI_cur_chat_();// 直接发送取消当前对话
}
int AiVoiceModel::GetAIResponseType(void)
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-06-20 15:11:17
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-18 10:58:29
+ * @LastEditTime: 2024-10-19 17:39:07
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoicePresenter.cpp
*/
#include "AppViewIDs.h"
if (it->first == AIVOICERETURNRESULTTEXT_CONTINUECHAT_BUTTON_VIEW_ID) // 点击继续对话按钮要发取消当前对话指令,避免AI回应中途按继续对话按钮没有取消上一次对话问题
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CancelCurAIChat");
- PlayersModel::GetInstance()->HandPausePhoneMusci(); // 暂停手机音乐
AiVoiceModel::GetInstance().CancelCurAIChat();
+ PlayersModel::GetInstance()->HandPausePhoneMusci(); // 暂停手机音乐
}
ChangeViewAndLogicOperator(it->second.first, it->second.second);
return true;
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-28 14:27:05
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-10-16 18:31:00
+ * @LastEditTime: 2024-10-19 17:16:50
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/language/src/AivoiceChatContentListAdapter.cpp
*/
#include "aivoice/include/AivoiceChatContentListAdapter.h"
const char *Text = text.c_str();
aiAnswerFlag = flag;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Text = %s,aiAnswerFlag = %d\n", Text, aiAnswerFlag);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Text = %s,aiAnswerFlag = %d\n", Text, aiAnswerFlag);
UILabel label;
label.SetPosition(53, 100);
label.SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
label.SetFont(DEFAULT_VECTOR_FONT_FILENAME_EN, 26);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "label.GetHeight = %d,label.GetTextHeight = %d\n", label.GetHeight(), label.GetTextHeight());
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "label.GetHeight = %d,label.GetTextHeight = %d\n", label.GetHeight(), label.GetTextHeight());
itemViewHeight = label.GetTextHeight();
}
UIView *AivoiceChatContentListAdapter::GetView(UIView *inView, int16_t index)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "AivoiceChatContentListAdapter::GetView,index %d", index);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AivoiceChatContentListAdapter::GetView,index %d", index);
// 1.先检查列表数据是否为空,若为空则返回空指针
if (listData.empty())
{