🎨 优化 AI,支持记录几句上下文,并优化了 at 消息匹配的正则
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user