From 96fd32971ac6628d8ab42573b716011a65fc2352 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 27 Feb 2023 20:40:00 +0800 Subject: [PATCH] update --- internal/logic/domain/message/service/app_push.go | 4 ++-- .../logic/domain/message/service/message_service.go | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/internal/logic/domain/message/service/app_push.go b/internal/logic/domain/message/service/app_push.go index 4216d83..0ecaf6e 100644 --- a/internal/logic/domain/message/service/app_push.go +++ b/internal/logic/domain/message/service/app_push.go @@ -16,8 +16,8 @@ func getChangeContent(args md3.PushParams, Content string) string { Content = strings.Replace(Content, "[MasterId]", args.MasterId, -1) Content = strings.Replace(Content, "[消息发送者-会员昵称]", args.SendUserNickname, -1) Content = strings.Replace(Content, "[消息发送者-会员头像]", args.SendUserAvatarUrl, -1) - Content = strings.Replace(Content, "[消息类型]", args.MessageType, -1) - Content = strings.Replace(Content, "[备注]", args.Memo, -1) + //Content = strings.Replace(Content, "[消息类型]", args.MessageType, -1) + //Content = strings.Replace(Content, "[备注]", args.Memo, -1) Content = strings.Replace(Content, "[时间]", args.Times, -1) return Content } diff --git a/internal/logic/domain/message/service/message_service.go b/internal/logic/domain/message/service/message_service.go index e5f94e8..725d37c 100644 --- a/internal/logic/domain/message/service/message_service.go +++ b/internal/logic/domain/message/service/message_service.go @@ -174,11 +174,12 @@ func (*messageService) SendToUser(ctx context.Context, sender *pb.Sender, toUser } //TODO::接收者类型为`user`, 进行极光推送 CommAddPush(md.PushParams{ - MasterId: masterId, - Uid: uid, - PushAlia: alia, - Title: "新消息提醒", - Content: "您收到一条新消息,来自会员\"[消息发送者-会员昵称]\",发送时间\"[时间]\",消息类型\"[消息类型]\",备注\"[备注]\"", + MasterId: masterId, + Uid: uid, + PushAlia: alia, + Title: "新消息提醒", + Content: "您收到一条新消息,来自会员\"[消息发送者-会员昵称]\",发送时间\"[时间]\"", + //Content: "您收到一条新消息,来自会员\"[消息发送者-会员昵称]\",发送时间\"[时间]\",消息类型\"[消息类型]\",备注\"[备注]\"", PushType: "zhi_ying_gim", MessageType: req.MessageType.String(), SendUserNickname: sender.Nickname,