From 956ed8aad2f5d81057227d912d1ce0d5f85b061c Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 29 Nov 2022 11:13:19 +0800 Subject: [PATCH] update --- internal/logic/domain/message/service/message_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logic/domain/message/service/message_service.go b/internal/logic/domain/message/service/message_service.go index 55c3a95..ebdae6b 100644 --- a/internal/logic/domain/message/service/message_service.go +++ b/internal/logic/domain/message/service/message_service.go @@ -159,7 +159,7 @@ func (*messageService) SendToUser(ctx context.Context, sender *pb.Sender, toUser } isOpenAppPush := svc.SysCfgGet(masterId, "is_open_app_push") - if sender.SenderType == 1 && req.ReceiverType == 1 && isOpenAppPush == "1" { + if sender.SenderType == 2 && req.ReceiverType == 1 && isOpenAppPush == "1" { uid := strconv.FormatInt(req.ReceiverId, 10) alia := db.DbUserPushForJg.UserPushForJgGetWithDb(masterId, uid) if alia != "" {