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 }