过滤 repetend = 1的礼物信息

This commit is contained in:
小白猿
2023-04-09 13:08:17 +08:00
parent ab950101cf
commit deda545676
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -128,6 +128,12 @@ namespace BarrageGrab
{ {
if (!CheckRoomId(e.Common.roomId)) return; if (!CheckRoomId(e.Common.roomId)) return;
//判断礼物重复
if (e.repeatEnd == 1)
{
return;
}
var enty = new GiftMsg() var enty = new GiftMsg()
{ {
MsgId = e.Common.msgId, MsgId = e.Common.msgId,