🎨 优化 AI,支持记录几句上下文,并优化了 at 消息匹配的正则

This commit is contained in:
李寻欢
2023-12-09 11:52:11 +08:00
parent 58cb76ed75
commit cab6b2633e
2 changed files with 52 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ func SaveMessage(msg entity.Message) {
return
}
if count > 0 {
//log.Printf("消息已存在消息Id: %d", msg.MsgId)
return
}
err = client.MySQL.Create(&msg).Error