diff --git a/library/middleware/notif_sender.go b/library/middleware/notif_sender.go index 7d454509..f9c48f41 100644 --- a/library/middleware/notif_sender.go +++ b/library/middleware/notif_sender.go @@ -109,10 +109,12 @@ func InitNotifSender(_DefaultNotification *logic.Notification, _DefaultNotifBcst nids = append(nids, notification.GetId()) // 广播通知 - err = _DefaultNotifBcstCenter.BcstNotifs(ctx, nids, notification.GetObjType(), notification.ObjMids) - if err != nil { - logger.Error("通知广播失败:%v", err) - continue + if notification.GetPushTime() == consts.Notification_PushTime_Instant { + err = _DefaultNotifBcstCenter.BcstNotifs(ctx, nids, notification.GetObjType(), notification.ObjMids) + if err != nil { + logger.Error("通知广播失败:%v", err) + continue + } } }