添加角色简介

This commit is contained in:
zpc 2024-07-16 16:32:10 +08:00
parent f4f72ed62c
commit 9d2698b22f
2 changed files with 15 additions and 1 deletions

View File

@ -164,6 +164,16 @@ namespace HuanMeng.MiaoYu.Code.Chat
}
//if(timeStamp.)
var userChatSession = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(it => it.CharacterId == characterId && it.UserId == _UserId && !it.IsDelete).FirstOrDefaultAsync();
ChatMessageDto chatMessageDto1 = new ChatMessageDto()
{
ClaudeType = ChatMessageType.text.ToString(),
Content = charact.Biography ?? "",
Role = ChatRole.profile.ToString(),
Timestamp = DateTime.Now,
UserIcon = "",
Id = 0
};
chatMessageDtos.Add(chatMessageDto1);
if (userChatSession == null)
{
userChatSession = new T_User_Chat()

View File

@ -26,6 +26,10 @@ namespace HuanMeng.MiaoYu.Model.EnumModel.Chat
/// <summary>
/// 提示
/// </summary>
tips
tips,
/// <summary>
/// 简介
/// </summary>
profile,
}
}