From e88f41323f92bca833c6611515846a4e7bc79137 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Fri, 12 Nov 2021 17:59:37 +0800 Subject: [PATCH] push modify --- internal/push/jpush/requestBody/notification.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/push/jpush/requestBody/notification.go b/internal/push/jpush/requestBody/notification.go index 09aae6020..2f386d3d3 100644 --- a/internal/push/jpush/requestBody/notification.go +++ b/internal/push/jpush/requestBody/notification.go @@ -9,7 +9,9 @@ type Notification struct { } type Android struct { - Intent string `json:"intent,omitempty"` + Intent struct { + URL string `json:"url,omitempty"` + } `json:"intent,omitempty"` } type Ios struct { } @@ -18,5 +20,5 @@ func (n *Notification) SetAlert(alert string) { n.Alert = alert } func (n *Notification) SetAndroidIntent() { - n.Android.Intent = config.Config.Push.Jpns.PushIntent + n.Android.Intent.URL = config.Config.Push.Jpns.PushIntent }