From 7f35b1233b09bfc01ea2e53691975263611b33fc Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 13 Jun 2023 11:50:41 +0800 Subject: [PATCH] Update cp_level.go --- domain/service/event_s/cp_level.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/domain/service/event_s/cp_level.go b/domain/service/event_s/cp_level.go index 1b7ce58..7a3b9d7 100644 --- a/domain/service/event_s/cp_level.go +++ b/domain/service/event_s/cp_level.go @@ -18,6 +18,10 @@ func CpGiftEvent() { model.Log.Errorf("AddSendGiftEventAsync event type err") return nil } + // 只处理cp礼物 + if !sendGiftEvent.ResGift.Cp { + return nil + } for _, receiverUid := range sendGiftEvent.ReceiveUserIds { diamonds := sendGiftEvent.GiftN * sendGiftEvent.ResGift.DiamondNum // 有cp关系 -- 2.22.0