Ver código fonte

update

master
DengBiao 1 ano atrás
pai
commit
ab83e7293c
2 arquivos alterados com 4 adições e 3 exclusões
  1. +1
    -1
      internal/logic/domain/message/service/app_push.go
  2. +3
    -2
      internal/logic/domain/message/service/message_service.go

+ 1
- 1
internal/logic/domain/message/service/app_push.go Ver arquivo

@@ -40,7 +40,7 @@ func CommAddPush(args md3.PushParams) {
)
pushPlatform := svc.SysCfgGet(args.MasterId, "app_push_platform")
if pushPlatform == "JgPush" { //极光
args.Content = getChangeContent(args, args.Content)
//args.Content = getChangeContent(args, args.Content)
JgPush(args)
return
}


+ 3
- 2
internal/logic/domain/message/service/message_service.go Ver arquivo

@@ -195,8 +195,9 @@ func (*messageService) SendToUser(ctx context.Context, sender *pb.Sender, toUser
MasterId: masterId,
Uid: uid,
PushAlia: alia,
Title: "新消息提醒",
Content: "您收到一条新消息,来自会员\"[消息发送者-会员昵称]\",发送时间\"[时间]\"",
Title: sender.Nickname,
Content: string(req.MessageContent),
//Content: "您收到一条新消息,来自会员\"[消息发送者-会员昵称]\",发送时间\"[时间]\"",
//Content: "您收到一条新消息,来自会员\"[消息发送者-会员昵称]\",发送时间\"[时间]\",消息类型\"[消息类型]\",备注\"[备注]\"",
PushType: "zhi_ying_gim",
MessageType: req.MessageType.String(),


Carregando…
Cancelar
Salvar