Browse Source

update

master
DengBiao 1 year ago
parent
commit
fde1165162
2 changed files with 5 additions and 1 deletions
  1. +4
    -1
      internal/logic/domain/message/service/message_service.go
  2. +1
    -0
      pkg/urlwhitelist/urlwhitelist.go

+ 4
- 1
internal/logic/domain/message/service/message_service.go View File

@@ -166,7 +166,10 @@ func (*messageService) SendToUser(ctx context.Context, sender *pb.Sender, toUser
return 0, err 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{}{ utils.FilePutContents("SendToUser", utils.SerializeStr(map[string]interface{}{
"devices_len": len(devices), "devices_len": len(devices),
"sender": sender, "sender": sender,


+ 1
- 0
pkg/urlwhitelist/urlwhitelist.go View File

@@ -20,4 +20,5 @@ var Logic = map[string]int{
"/pb.LogicExt/CreateGroup": 9, "/pb.LogicExt/CreateGroup": 9,
"/pb.LogicExt/SetGroupRemoveBannedMembers": 10, "/pb.LogicExt/SetGroupRemoveBannedMembers": 10,
"/pb.LogicExt/SendRedPacket": 11, "/pb.LogicExt/SendRedPacket": 11,
"/pb.LogicExt/DeleteFriend": 12,
} }

Loading…
Cancel
Save