diff --git a/pkg/service/asChat/logic/chat.go b/pkg/service/asChat/logic/chat.go index 7137aa9..5e8e609 100644 --- a/pkg/service/asChat/logic/chat.go +++ b/pkg/service/asChat/logic/chat.go @@ -40,7 +40,7 @@ func NewMessage(ctx context.Context, cache *chatCache.ChatCache, sender *account cacheMap[request.AtUserId] = request } else { 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 fmt.Println("\n\n跳过消息发送\n\t跳过消息发送\n\t\t跳过消息发送\n\n") return nil