mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-30 10:19:22 +08:00
push
This commit is contained in:
parent
0b4b408552
commit
b08936c27e
@ -167,12 +167,11 @@ func (g *Getui) Push(userIDList []string, title, detailContent, operationID stri
|
||||
err = g.request(BatchPushURL, pushReq, token, &pushResp, operationID)
|
||||
} else {
|
||||
reqID := utils.OperationIDGenerator()
|
||||
pushReq = PushReq{
|
||||
RequestID: &reqID,
|
||||
Audience: struct {
|
||||
Alias []string `json:"alias"`
|
||||
}{Alias: []string{userIDList[0]}},
|
||||
}
|
||||
pushReq.RequestID = &reqID
|
||||
pushReq.Audience = struct {
|
||||
Alias []string `json:"alias"`
|
||||
}{Alias: []string{userIDList[0]}}
|
||||
|
||||
pushReq.PushChannel.Ios = &Ios{}
|
||||
pushReq.PushChannel.Ios.Aps.Sound = "default"
|
||||
pushReq.PushChannel.Ios.Aps.Alert = Alert{
|
||||
|
Loading…
x
Reference in New Issue
Block a user