From b79ea77eb1691bdaf1503d6d7643ce738fa4c8de Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 1 Mar 2023 21:54:00 +0800 Subject: [PATCH] update --- internal/logic/domain/message/service/app_push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logic/domain/message/service/app_push.go b/internal/logic/domain/message/service/app_push.go index e637341..3925ad6 100644 --- a/internal/logic/domain/message/service/app_push.go +++ b/internal/logic/domain/message/service/app_push.go @@ -74,7 +74,7 @@ func JgPush(args md3.PushParams) { Platform: "all", Audience: aud, Title: args.Title, - Content: args.Content, + Content: strings.Replace(args.Content, "\\n", "", -1), Extras: extras, Intent: intent, } @@ -85,7 +85,7 @@ func JgPush(args md3.PushParams) { "res": res, "push_alia": args.PushAlia, "title": param.Title, - "content": strings.Replace(param.Content, "\\n", "", -1), + "content": param.Content, "jg_push_app_key": jgPushAppKey, "jg_push_app_secret": jgPushAppSecret, }))