Browse Source

update

master
DengBiao 1 year ago
parent
commit
ab83e7293c
2 changed files with 4 additions and 3 deletions
  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 View File

@@ -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 View File

@@ -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(),


Loading…
Cancel
Save