From 7fcd58e7f68fb5dcfb81bf2da6d04394b1bca1a2 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Fri, 1 Mar 2024 11:41:45 +0800 Subject: [PATCH] intent --- push/getui.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/push/getui.go b/push/getui.go index 5cddd62..985d948 100644 --- a/push/getui.go +++ b/push/getui.go @@ -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, }, }, },