diff --git a/app/mix/service/notif_bcst_center.go b/app/mix/service/notif_bcst_center.go index caf75a03..95a05f7a 100644 --- a/app/mix/service/notif_bcst_center.go +++ b/app/mix/service/notif_bcst_center.go @@ -27,7 +27,7 @@ func NewNotifBcstCenter() *NotifBcstCenter { // 对外接口 func (s *NotifBcstCenter) BcstNotifs(ctx *gin.Context, nids []int64, objType int64, objMids []int64) error { - if len(nids) == 0 || len(objMids) == 0 { + if len(nids) == 0 && len(objMids) == 0 { return nil }