From 2c308af615083924f842103dd1f971459dccfec8 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 11 Apr 2022 17:58:23 +0800 Subject: [PATCH] getui --- internal/push/getui/push.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/push/getui/push.go b/internal/push/getui/push.go index d95aca887..215ed474b 100644 --- a/internal/push/getui/push.go +++ b/internal/push/getui/push.go @@ -51,7 +51,7 @@ type AuthResp struct { type PushReq struct { RequestID string `json:"request_id"` Audience struct { - Cid []string `json:"cid"` + Alias []string `json:"alias"` } `json:"audience"` PushMessage struct { Notification Notification `json:"notification,omitempty"` @@ -91,8 +91,8 @@ func (g *Getui) Push(userIDList []string, alert, detailContent, platform, operat pushReq := PushReq{ RequestID: utils.OperationIDGenerator(), Audience: struct { - Cid []string `json:"cid"` - }{Cid: []string{userIDList[0]}}, + Alias []string `json:"alias"` + }{Alias: []string{userIDList[0]}}, } pushReq.PushMessage.Notification = Notification{ Title: alert,