添加角色简介
This commit is contained in:
parent
f4f72ed62c
commit
9d2698b22f
|
|
@ -164,6 +164,16 @@ namespace HuanMeng.MiaoYu.Code.Chat
|
||||||
}
|
}
|
||||||
//if(timeStamp.)
|
//if(timeStamp.)
|
||||||
var userChatSession = await Dao.daoDbMiaoYu.context.T_User_Chat.Where(it => it.CharacterId == characterId && it.UserId == _UserId && !it.IsDelete).FirstOrDefaultAsync();
|
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)
|
if (userChatSession == null)
|
||||||
{
|
{
|
||||||
userChatSession = new T_User_Chat()
|
userChatSession = new T_User_Chat()
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,10 @@ namespace HuanMeng.MiaoYu.Model.EnumModel.Chat
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提示
|
/// 提示
|
||||||
/// </summary>
|
/// </summary>
|
||||||
tips
|
tips,
|
||||||
|
/// <summary>
|
||||||
|
/// 简介
|
||||||
|
/// </summary>
|
||||||
|
profile,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user