From f304ca869c1d17394a0942cbf820d5f1d6735e92 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Mon, 4 Mar 2024 11:48:28 +0800 Subject: [PATCH] xiaomi channel id --- push/getui.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/push/getui.go b/push/getui.go index af2c6f1..9a2e15c 100644 --- a/push/getui.go +++ b/push/getui.go @@ -15,6 +15,7 @@ type GetuiConfig struct { AppId string AppKey string MasterSecret string + XMChannelId string } type GetuiStatus struct { @@ -139,6 +140,14 @@ func (g *Getui) Push(req *GetuiMessage) (*GetuiPushRsp, error) { "notify_id": cast.ToInt64(req.NotifyId), "intent": req.Intent, }, + "options": map[string]interface{}{ + "ALL": map[string]interface{}{ + "channel": "default", + }, + "XM": map[string]interface{}{ + "/extra.channel_id": g.config.XMChannelId, + }, + }, }, }, }