过滤 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
+7 -1
View File
@@ -127,7 +127,13 @@ namespace BarrageGrab
private void Grab_OnGiftMessage(object sender, ProtoEntity.GiftMessage e)
{
if (!CheckRoomId(e.Common.roomId)) return;
//判断礼物重复
if (e.repeatEnd == 1)
{
return;
}
var enty = new GiftMsg()
{
MsgId = e.Common.msgId,