From fde1165162e57cfbe02bcddff53882a50a98ee44 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 8 Jun 2023 21:15:22 +0800 Subject: [PATCH] update --- internal/logic/domain/message/service/message_service.go | 5 ++++- pkg/urlwhitelist/urlwhitelist.go | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/logic/domain/message/service/message_service.go b/internal/logic/domain/message/service/message_service.go index c66cb42..85c6dfb 100644 --- a/internal/logic/domain/message/service/message_service.go +++ b/internal/logic/domain/message/service/message_service.go @@ -166,7 +166,10 @@ func (*messageService) SendToUser(ctx context.Context, sender *pb.Sender, toUser return 0, err } - isOpenAppPush := svc.SysCfgGet(masterId, "is_open_app_push") + isOpenAppPush := "0" + if masterId == "" { + isOpenAppPush = svc.SysCfgGet(masterId, "is_open_app_push") + } utils.FilePutContents("SendToUser", utils.SerializeStr(map[string]interface{}{ "devices_len": len(devices), "sender": sender, diff --git a/pkg/urlwhitelist/urlwhitelist.go b/pkg/urlwhitelist/urlwhitelist.go index 4ef3d91..f850600 100644 --- a/pkg/urlwhitelist/urlwhitelist.go +++ b/pkg/urlwhitelist/urlwhitelist.go @@ -20,4 +20,5 @@ var Logic = map[string]int{ "/pb.LogicExt/CreateGroup": 9, "/pb.LogicExt/SetGroupRemoveBannedMembers": 10, "/pb.LogicExt/SendRedPacket": 11, + "/pb.LogicExt/DeleteFriend": 12, }