Merge branch 'v2.0' of https://github.com/bufanyun/hotgo into v2.0

This commit is contained in:
孟帅 2023-07-20 18:01:29 +08:00
commit 47ecaf4c0f

View File

@ -245,7 +245,7 @@ func (s *sAdminNotice) PullMessages(ctx context.Context, in *adminin.PullMessage
res.NoticeUnreadCountModel = unread
}
if err = s.Model(ctx).WhereIn("id", messageIds).Limit(in.Limit).Order("id desc").Scan(&res.List); err != nil {
if err = s.Model(ctx, &handler.Option{FilterAuth: false}).WhereIn("id", messageIds).Limit(in.Limit).Order("id desc").Scan(&res.List); err != nil {
err = gerror.Wrap(err, consts.ErrorORM)
return
}