321
This commit is contained in:
parent
b88e620359
commit
b0ece0abe3
|
|
@ -928,7 +928,7 @@ namespace ShengShengBuXi.Hubs
|
|||
{
|
||||
_presetSentences.Add(text);
|
||||
}
|
||||
_presetSentences.Add(text);
|
||||
|
||||
if (!_presetSentences2.Contains(text))
|
||||
{
|
||||
_presetSentences2.Add(text);
|
||||
|
|
@ -1208,14 +1208,6 @@ namespace ShengShengBuXi.Hubs
|
|||
// 只发送给请求的客户端
|
||||
await Clients.Caller.SendAsync("ReceiveDisplayText", textToDisplay.Text);
|
||||
_logger.LogInformation($"已发送显示文本到客户端: {textToDisplay.Text} (来源: {(textToDisplay.IsRealUser ? "真实用户" : "预设文本")})");
|
||||
|
||||
// 如果是真实用户的发言,持久化保存到文件
|
||||
if (textToDisplay.IsRealUser)
|
||||
{
|
||||
|
||||
SaveRealUserDisplayToFile(textToDisplay);
|
||||
_presetSentences.Add(textToDisplay.Text);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user