push modify

pull/103/head
Gordon 3 years ago
parent 8f483b498b
commit e88f41323f

@ -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
}

Loading…
Cancel
Save