diff --git a/domain/service/event_s/event_init.go b/domain/service/event_s/event_init.go index 5a79f0f2b894840c69c630a0e0e115ea1bf0013e..13a037d1548d9c5d22e773359b0624ec17276080 100644 --- a/domain/service/event_s/event_init.go +++ b/domain/service/event_s/event_init.go @@ -475,6 +475,9 @@ func SendGift() { return nil } model.Log.Infof("AddSendGiftEventAsync %+v", sendGiftEvent) + if sendGiftEvent.ResGift.GiftType != mysql.DiamondYellow { + return nil + } exist, groupPowerId, err := groupPower_m.CheckGroupPowerUser(model, sendGiftEvent.SendUserId) if err != nil { model.Log.Infof("CheckGroupPowerUser fail %+v", err) @@ -493,6 +496,9 @@ func SendGift() { model.Log.Errorf("AddSendGiftEventAsync event type err") return nil } + if sendGiftEvent.ResGift.GiftType != mysql.DiamondYellow { + return nil + } var userIds = []mysql.ID{sendGiftEvent.SendUserId} userIds = append(userIds, sendGiftEvent.ReceiveUserIds...) groupPowers, err := groupPower_m.BatchGetGroupPowerUser(model, userIds)