|
|
@@ -5,6 +5,8 @@ import ( |
|
|
|
md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_jg_push.git/md" |
|
|
|
"gim/internal/business/comm/db" |
|
|
|
md3 "gim/internal/logic/domain/message/md" |
|
|
|
"gim/pkg/logger" |
|
|
|
"go.uber.org/zap" |
|
|
|
|
|
|
|
"strings" |
|
|
|
) |
|
|
@@ -19,6 +21,19 @@ func getChangeContent(args md3.PushParams, Content string) string { |
|
|
|
|
|
|
|
// CommAddPush 公共处理推送数据 |
|
|
|
func CommAddPush(args md3.PushParams) { |
|
|
|
logger.Logger.Debug("CommAddPush", |
|
|
|
zap.String("master_id", args.MasterId), |
|
|
|
zap.String("uid", args.Uid), |
|
|
|
zap.String("push_alia", args.PushAlia), |
|
|
|
zap.String("title", args.Title), |
|
|
|
zap.String("content", args.Content), |
|
|
|
zap.String("push_type", args.PushType), |
|
|
|
zap.String("message_type", args.MessageType), |
|
|
|
zap.String("send_user_nickname", args.SendUserNickname), |
|
|
|
zap.String("send_user_avatar_url", args.SendUserAvatarUrl), |
|
|
|
zap.String("reason", args.Memo), |
|
|
|
zap.String("times", args.Times), |
|
|
|
) |
|
|
|
pushPlatform := db.DbSysCfg.SysCfgFindWithDb(args.MasterId, "app_push_platform")["app_push_platform"] |
|
|
|
if pushPlatform == "jg" { //极光 |
|
|
|
args.Content = getChangeContent(args, args.Content) |
|
|
|