This commit is contained in:
jiangyong27 2024-03-01 11:41:45 +08:00
parent 0ab848d838
commit 7fcd58e7f6
1 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ type GetuiMessage struct {
Title string
Message string
NotifyId string
Payload string
Intent string
}
type Getui struct {
@ -119,9 +119,9 @@ func (g *Getui) Push(req *GetuiMessage) error {
"title": req.Title,
"body": req.Message,
"channel_level": 4,
"click_type": "payload",
"click_type": "intent",
"notify_id": cast.ToInt64(req.NotifyId),
"payload": req.Payload,
"intent": req.Intent,
},
}
params["push_channel"] = map[string]interface{}{
@ -130,9 +130,9 @@ func (g *Getui) Push(req *GetuiMessage) error {
"notification": map[string]interface{}{
"title": req.Title,
"body": req.Message,
"click_type": "startapp",
"click_type": "intent",
"notify_id": cast.ToInt64(req.NotifyId),
"payload": req.Payload,
"intent": req.Intent,
},
},
},