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, }