Update chat.go

This commit is contained in:
徐俊杰 2025-06-19 14:14:11 +08:00
parent ef57eb0e89
commit 4c842559a7

View File

@ -40,7 +40,7 @@ func NewMessage(ctx context.Context, cache *chatCache.ChatCache, sender *account
cacheMap[request.AtUserId] = request cacheMap[request.AtUserId] = request
} else { } else {
fmt.Println(request.LocalStamp - msgRecord.LocalStamp) fmt.Println(request.LocalStamp - msgRecord.LocalStamp)
if msgRecord.Message.Text == request.Message.Text && request.LocalStamp-msgRecord.LocalStamp < 10 { if msgRecord.Message.Text == request.Message.Text && request.LocalStamp-msgRecord.LocalStamp < 1 {
cacheMap[request.AtUserId] = request cacheMap[request.AtUserId] = request
fmt.Println("\n\n跳过消息发送\n\t跳过消息发送\n\t\t跳过消息发送\n\n") fmt.Println("\n\n跳过消息发送\n\t跳过消息发送\n\t\t跳过消息发送\n\n")
return nil return nil