Commit 6437f4ca authored by hujiebin's avatar hujiebin

Merge branch 'feature/cp-new' into feature/3.9.0

parents 076055b3 7f35b123
...@@ -18,6 +18,10 @@ func CpGiftEvent() { ...@@ -18,6 +18,10 @@ func CpGiftEvent() {
model.Log.Errorf("AddSendGiftEventAsync event type err") model.Log.Errorf("AddSendGiftEventAsync event type err")
return nil return nil
} }
// 只处理cp礼物
if !sendGiftEvent.ResGift.Cp {
return nil
}
for _, receiverUid := range sendGiftEvent.ReceiveUserIds { for _, receiverUid := range sendGiftEvent.ReceiveUserIds {
diamonds := sendGiftEvent.GiftN * sendGiftEvent.ResGift.DiamondNum diamonds := sendGiftEvent.GiftN * sendGiftEvent.ResGift.DiamondNum
// 有cp关系 // 有cp关系
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment