From d8dd440e7665918978eda5c5850b79e54e604593 Mon Sep 17 00:00:00 2001 From: Robin <7434053+warrior_of_light_robin@user.noreply.gitee.com> Date: Tue, 3 Dec 2024 15:51:09 +0800 Subject: [PATCH] by Robin at 20241203 --- app/mix/service/notif_bcst_center.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }