push modify

This commit is contained in:
Gordon
2021-11-12 17:25:17 +08:00
parent 85a75be30e
commit 8f483b498b
3 changed files with 4 additions and 2 deletions
@@ -1,6 +1,6 @@
package requestBody
const INTENT_URL = "intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end"
import "Open_IM/pkg/common/config"
type Notification struct {
Alert string `json:"alert,omitempty"`
@@ -18,5 +18,5 @@ func (n *Notification) SetAlert(alert string) {
n.Alert = alert
}
func (n *Notification) SetAndroidIntent() {
n.Android.Intent = INTENT_URL
n.Android.Intent = config.Config.Push.Jpns.PushIntent
}